Commit cfb6b72
Allow DSM segments to be created as pinned
dsm_create and dsm_attach assumed that a current resource owner was
always in place. Exploration with the API show that this is
inconvenient: sometimes one must create a dummy resowner, create/attach
the DSM, only to pin the mapping later, which is wasteful. Change
create/attach so that if there is no current resowner, the dsm is
effectively pinned right from the start.
Discussion: https://postgr.es/m/[email protected]
Reviewed by Thomas Munro.
This is backport of commit 767bc02
Co-authored-by: Alvaro Herrera <[email protected]>1 parent ac7e76a commit cfb6b72
1 file changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
456 | 463 | | |
457 | 464 | | |
458 | 465 | | |
| |||
535 | 542 | | |
536 | 543 | | |
537 | 544 | | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
538 | 550 | | |
539 | 551 | | |
540 | 552 | | |
| |||
1055 | 1067 | | |
1056 | 1068 | | |
1057 | 1069 | | |
1058 | | - | |
| 1070 | + | |
| 1071 | + | |
1059 | 1072 | | |
1060 | 1073 | | |
1061 | 1074 | | |
| |||
1067 | 1080 | | |
1068 | 1081 | | |
1069 | 1082 | | |
1070 | | - | |
| 1083 | + | |
| 1084 | + | |
1071 | 1085 | | |
1072 | 1086 | | |
1073 | 1087 | | |
| |||
0 commit comments