pgsql: Make it easy to detach completely from shared memory. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Make it easy to detach completely from shared memory.
Date
Msg-id E1WPsft-0001X0-UY@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/79a4d24f31e09eb3c421deb34829eee0bf6acd67

Modified Files
--------------
src/backend/postmaster/pgarch.c    |    2 ++
src/backend/postmaster/pgstat.c    |    2 ++
src/backend/postmaster/syslogger.c |    2 ++
src/backend/storage/ipc/dsm.c      |   27 +++++++++++++++++++++++++++
src/include/storage/dsm.h          |    1 +
5 files changed, 34 insertions(+)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Stamp 8.4.21.
Next
From: Fujii Masao
Date:
Subject: pgsql: Fix help message and document in pg_receivexlog.