From: | Robert Haas <rhaas(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Make it easy to detach completely from shared memory. |
Date: | 2014-03-18 11:59:17 |
Message-ID: | E1WPsft-0001X0-UY@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
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(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Fujii Masao | 2014-03-18 12:21:16 | pgsql: Fix help message and document in pg_receivexlog. |
Previous Message | Tom Lane | 2014-03-17 19:39:38 | pgsql: Stamp 8.4.21. |
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2014-03-18 12:00:04 | Re: on_exit_reset fails to clear DSM-related exit actions |
Previous Message | Robert Haas | 2014-03-18 11:38:45 | Re: Replication slots and footguns |