]> granicus.if.org Git - postgresql/commit
Move synchronous_standbys_defined updates from WAL writer to BG writer.
authorRobert Haas <rhaas@postgresql.org>
Sat, 19 Mar 2011 01:43:45 +0000 (21:43 -0400)
committerRobert Haas <rhaas@postgresql.org>
Sat, 19 Mar 2011 01:43:45 +0000 (21:43 -0400)
commit727589995a3e027046f0da7af6ba665b0b47f89f
tree674784df889b69812b61a6ae4adb375da3808a1c
parentf78ba0a73a60f40270b21c4582f6a7d52fe16739
Move synchronous_standbys_defined updates from WAL writer to BG writer.

This is advantageous because the BG writer is alive until much later in
the shutdown sequence than WAL writer; we want to make sure that it's
possible to shut off synchronous replication during a smart shutdown,
else it might not be possible to complete the shutdown at all.

Per very reasonable gripes from Fujii Masao and Simon Riggs.
src/backend/postmaster/bgwriter.c
src/backend/postmaster/walwriter.c
src/backend/replication/syncrep.c