Make it easy to detach completely from shared memory.

Robert Haas <rhaas@postgresql.org>

Commit: 79a4d24f31e09eb3c421deb34829eee0bf6acd67
Author: Robert Haas <rhaas@postgresql.org>
Date: 2014-03-18T11:58:53Z
Releases: 9.4.0
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