aboutsummaryrefslogtreecommitdiff
path: root/src/include/postgres.h
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2014-03-17 20:41:52 +0900
committerFujii Masao <fujii@postgresql.org>2014-03-17 20:41:52 +0900
commit7899aa356a06181dfa4f958ea2f7276ec7253da1 (patch)
tree2a2cda65a8ef749541e154828ee620caf720fe7a /src/include/postgres.h
parentba5946e8696e9629e77cc1e9c2c8bc722798a0a0 (diff)
downloadpostgresql-7899aa356a06181dfa4f958ea2f7276ec7253da1.tar.gz
postgresql-7899aa356a06181dfa4f958ea2f7276ec7253da1.zip
Fix bug in clean shutdown of walsender that pg_receiving is connecting to.
On clean shutdown, walsender waits for all WAL to be replicated to a standby, and exits. It determined whether that replication had been completed by checking whether its sent location had been equal to a standby's flush location. Unfortunately this condition never becomes true when the standby such as pg_receivexlog which always returns an invalid flush location is connecting to walsender, and then walsender waits forever. This commit changes walsender so that it just checks a standby's write location if a flush location is invalid. Back-patch to 9.1 where enough infrastructure for this exists.
Diffstat (limited to 'src/include/postgres.h')
0 files changed, 0 insertions, 0 deletions