]> granicus.if.org Git - postgresql/commit
Make it easy to detach completely from shared memory.
authorRobert Haas <rhaas@postgresql.org>
Tue, 18 Mar 2014 11:58:53 +0000 (07:58 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 18 Mar 2014 11:58:53 +0000 (07:58 -0400)
commit79a4d24f31e09eb3c421deb34829eee0bf6acd67
tree8b0bba2d25d63961f2c4ac287034347372d6e7de
parent551fb5ac742eb7dbf92aa80743aa5a52b8a0189f
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.
src/backend/postmaster/pgarch.c
src/backend/postmaster/pgstat.c
src/backend/postmaster/syslogger.c
src/backend/storage/ipc/dsm.c
src/include/storage/dsm.h