Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFujii Masao2019-09-06 05:27:25 +0000
committerFujii Masao2019-09-06 05:27:25 +0000
commit946647f845d0b0762656a8e07055f501c4b29688 (patch)
tree9dc381acb8b1f0f24bda4a12ff2f090433977e28 /src/interfaces/libpq/fe-gssapi-common.c
parentfc8cb94bf451cd810ae5b1c1f90b977277247625 (diff)
Make pg_promote() detect postmaster death while waiting for promotion to end.
Previously even if postmaster died and WaitLatch() woke up with that event while pg_promote() was waiting for the standby promotion to finish, pg_promote() did nothing special and kept waiting until timeout occurred. This could cause a busy loop. This patch make pg_promote() return false immediately when postmaster dies, to avoid such a busy loop. Back-patch to v12 where pg_promote() was added. Author: Fujii Masao Reviewed-by: Michael Paquier Discussion: https://postgr.es/m/CAHGQGwEs9ROgSp+QF+YdDU+xP8W=CY1k-_Ov-d_Z3JY+to3eXA@mail.gmail.com
Diffstat (limited to 'src/interfaces/libpq/fe-gssapi-common.c')
0 files changed, 0 insertions, 0 deletions