diff options
author | Fujii Masao <fujii@postgresql.org> | 2014-03-17 20:41:12 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2014-03-17 20:41:12 +0900 |
commit | 3857234053fccbea6344cc4a1b632750621d51d8 (patch) | |
tree | 272a1231e80f28e1d496bc9e55f8d5a93d7c61df /src/backend/regex/regexec.c | |
parent | 60829079d7eae9ba6a4e9e58807bbe1a70b12b84 (diff) | |
download | postgresql-3857234053fccbea6344cc4a1b632750621d51d8.tar.gz postgresql-3857234053fccbea6344cc4a1b632750621d51d8.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/backend/regex/regexec.c')
0 files changed, 0 insertions, 0 deletions