postgresql/src/backend
Fujii Masao 946647f845 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
2019-09-06 14:27:25 +09:00
..
access Make pg_promote() detect postmaster death while waiting for promotion to end. 2019-09-06 14:27:25 +09:00
bootstrap Fix inconsistencies and typos in the tree 2019-07-16 13:23:53 +09:00
catalog Remove 'msg' parameter from convert_tuples_by_name 2019-09-03 14:47:29 -04:00
commands Split tuptoaster.c into three separate files. 2019-09-05 13:15:10 -04:00
executor Split tuptoaster.c into three separate files. 2019-09-05 13:15:10 -04:00
foreign Update copyright for 2019 2019-01-02 12:44:25 -05:00
jit Don't rely on llvm::make_unique. 2019-08-25 14:45:51 +12:00
lib Fix inconsistencies in the code 2019-07-08 13:15:09 +09:00
libpq Use explicit_bzero 2019-09-05 08:30:42 +02:00
main initdb: Remove obsolete locale handling 2019-08-14 06:51:13 +02:00
nodes Remove fmgr.h includes from headers that don't really need it. 2019-08-16 10:35:31 -07:00
optimizer Remove useless bms_free() calls in build_child_join_rel(). 2019-08-16 14:35:55 +09:00
parser Rationalize use of list_concat + list_copy combinations. 2019-08-12 11:20:18 -04:00
partitioning Don't include utils/array.h from acl.h. 2019-08-16 10:33:30 -07:00
po Translation updates 2019-06-17 15:30:20 +02:00
port Use data directory inode number, not port, to select SysV resource keys. 2019-09-05 13:31:46 -04:00
postmaster Use data directory inode number, not port, to select SysV resource keys. 2019-09-05 13:31:46 -04:00
regex Fix inconsistencies and typos in the tree, take 9 2019-08-05 12:14:58 +09:00
replication Split tuptoaster.c into three separate files. 2019-09-05 13:15:10 -04:00
rewrite Rationalize use of list_concat + list_copy combinations. 2019-08-12 11:20:18 -04:00
snowball Sync our Snowball stemmer dictionaries with current upstream 2019-07-04 13:26:48 +02:00
statistics Split tuptoaster.c into three separate files. 2019-09-05 13:15:10 -04:00
storage Use data directory inode number, not port, to select SysV resource keys. 2019-09-05 13:31:46 -04:00
tcop Revert "Add log_statement_sample_rate parameter" 2019-08-04 23:38:27 +02:00
tsearch Fix inconsistencies and typos in the tree, take 11 2019-08-19 16:21:39 +09:00
utils Use data directory inode number, not port, to select SysV resource keys. 2019-09-05 13:31:46 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Get rid of jsonpath_gram.h and jsonpath_scanner.h 2019-03-20 11:13:34 +03:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Translation updates 2019-05-20 16:00:53 +02:00