pgsql: Teach on_exit_reset() to discard pending cleanups for dsm.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Teach on_exit_reset() to discard pending cleanups for dsm.
Date: 2014-03-10 14:23:55
Message-ID: E1WN17T-00038B-FU@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2014-03-10 18:00:38 pgsql: Allow logical decoding via the walsender interface.
Previous Message Simon Riggs 2014-03-09 09:06:10 pgsql: Correct copy/pasto in comment for REPLICA IDENTITY