]> granicus.if.org Git - postgresql/commit
Treat a WAL sender process that hasn't started streaming yet as a regular
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sat, 15 Jan 2011 14:27:40 +0000 (16:27 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sat, 15 Jan 2011 14:38:21 +0000 (16:38 +0200)
commit8f5d65e916796aaee1bf7dd66daf45ca56cd13be
treec9279279b9702d580cfd38c447e4ca63c797cff8
parentfcd810c69adf11b6ec1cff35359be0dd27662eff
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.
src/backend/replication/walsender.c
src/backend/storage/ipc/pmsignal.c
src/include/storage/pmsignal.h