Allow DSM segments to be created as pinned
Alvaro Herrera <alvherre@alvh.no-ip.org>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/ipc/dsm.c | modified | +16 −2 |
Discussion
- dsm.c API tweak 6 messages · 2017-03-24 → 2017-03-28