Thread: pgsql: Treat a WAL sender process that hasn't started streaming yet as

pgsql: Treat a WAL sender process that hasn't started streaming yet as

From
Heikki Linnakangas
Date:
Treat a WAL sender process that hasn't started streaming yet as a regular
backend, as far as the postmaster shutdown logic is concerned. That means,
fast shutdown will wait for WAL sender processes to exit before signaling
bgwriter to finish. This avoids race conditions between a base backup stopping
or starting, and bgwriter writing the shutdown checkpoint WAL record. We don't
want e.g the end-of-backup WAL record to be written after the shutdown
checkpoint.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=8f5d65e916796aaee1bf7dd66daf45ca56cd13be

Modified Files
--------------
src/backend/replication/walsender.c |   10 ++++++++++
src/backend/storage/ipc/pmsignal.c  |   23 +++++++++++++++++++++--
src/include/storage/pmsignal.h      |    1 +
3 files changed, 32 insertions(+), 2 deletions(-)