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

Поиск
Список
Период
Сортировка
От Robert Haas
Тема pgsql: Teach on_exit_reset() to discard pending cleanups for dsm.
Дата
Msg-id E1WN17T-00038B-FU@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: pgsql: Correct copy/pasto in comment for REPLICA IDENTITY
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: Allow logical decoding via the walsender interface.