Make it easy to detach completely from shared memory.
Robert Haas <rhaas@postgresql.org>
Make it easy to detach completely from shared memory. The new function dsm_detach_all() can be used either by postmaster children that don't wish to take any risk of accidentally corrupting shared memory; or by forked children of regular backends with the same need. This patch also updates the postmaster children that already do PGSharedMemoryDetach() to do dsm_detach_all() as well. Per discussion with Tom Lane.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/pgarch.c | modified | +2 −0 |
| src/backend/postmaster/pgstat.c | modified | +2 −0 |
| src/backend/postmaster/syslogger.c | modified | +2 −0 |
| src/backend/storage/ipc/dsm.c | modified | +27 −0 |
| src/include/storage/dsm.h | modified | +1 −0 |