aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2019-09-06 14:27:25 +0900
committerFujii Masao <fujii@postgresql.org>2019-09-06 14:28:25 +0900
commit7aa815a7aadd0dcc0515dfc3a88677deb0ca11ff (patch)
treeb64f4d930a8fc865d9134ea5a43ee5e1e2fbe969 /src/backend/access/gist/gistxlog.c
parent4c3e750ab4b5f1900abfa7000aad5e6322f47b5d (diff)
downloadpostgresql-7aa815a7aadd0dcc0515dfc3a88677deb0ca11ff.tar.gz
postgresql-7aa815a7aadd0dcc0515dfc3a88677deb0ca11ff.zip
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/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions