Commit 767bc02
committed
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/20170324232710.32acsfsvjqfgc6ud@alvherre.pgsql
Reviewed by Thomas Munro.1 parent 2c4debb commit 767bc02
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 | | |
| |||
544 | 551 | | |
545 | 552 | | |
546 | 553 | | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
547 | 559 | | |
548 | 560 | | |
549 | 561 | | |
| |||
1095 | 1107 | | |
1096 | 1108 | | |
1097 | 1109 | | |
1098 | | - | |
| 1110 | + | |
| 1111 | + | |
1099 | 1112 | | |
1100 | 1113 | | |
1101 | 1114 | | |
| |||
1107 | 1120 | | |
1108 | 1121 | | |
1109 | 1122 | | |
1110 | | - | |
| 1123 | + | |
| 1124 | + | |
1111 | 1125 | | |
1112 | 1126 | | |
1113 | 1127 | | |
| |||
0 commit comments