postgresql/src/backend/storage
Thomas Munro b94109ce37 Make WL_POSTMASTER_DEATH level-triggered on kqueue builds.
If WaitEventSetWait() reports that the postmaster has gone away, later
calls to WaitEventSetWait() should continue to report that.  Otherwise
further waits that occur in the proc_exit() path after we already
noticed the postmaster's demise could block forever.

Back-patch to 13, where the kqueue support landed.

Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/3624029.1602701929%40sss.pgh.pa.us
2020-10-15 11:41:58 +13:00
..
buffer Defer flushing of SLRU files. 2020-09-25 19:00:15 +12:00
file Skip unnecessary stat() calls in walkdir(). 2020-09-07 18:28:06 +12:00
freespace Cache smgrnblocks() results in recovery. 2020-07-31 14:29:52 +12:00
ipc Make WL_POSTMASTER_DEATH level-triggered on kqueue builds. 2020-10-15 11:41:58 +13:00
large_object Remove utils/acl.h from catalog/objectaddress.h 2020-03-10 10:27:00 +01:00
lmgr Defer flushing of SLRU files. 2020-09-25 19:00:15 +12:00
page Optimize compactify_tuples function 2020-09-16 13:22:20 +12:00
smgr remove redundant initializations 2020-09-03 22:57:35 -04:00
sync Defer flushing of SLRU files. 2020-09-25 19:00:15 +12:00
Makefile Refactor the fsync queue for wider use. 2019-04-04 23:38:38 +13:00