pgsql: Teach on_exit_reset() to discard pending cleanups for dsm. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Teach on_exit_reset() to discard pending cleanups for dsm.
Date
Msg-id E1WN17T-00038B-FU@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Teach on_exit_reset() to discard pending cleanups for dsm.

If a postmaster child invokes fork() and then calls on_exit_reset, that
should be sufficient to let it exit() without breaking anything, but
dynamic shared memory broke that by not updating on_exit_reset() to
discard callbacks registered with dynamic shared memory segments.

Per investigation of a complaint from Tom Lane.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/cb9a0c7987466b130fbced01ab5d5481cf3a16df

Modified Files
--------------
src/backend/storage/ipc/dsm.c |   31 +++++++++++++++++++++++++++++++
src/backend/storage/ipc/ipc.c |    1 +
src/include/storage/dsm.h     |    1 +
3 files changed, 33 insertions(+)


pgsql-committers by date:

Previous
From: Simon Riggs
Date:
Subject: pgsql: Correct copy/pasto in comment for REPLICA IDENTITY
Next
From: Robert Haas
Date:
Subject: pgsql: Allow logical decoding via the walsender interface.