postgresql/src/backend/storage
Thomas Munro 70516a178a Handle EACCES errors from kevent() better.
While registering for postmaster exit events, we have to handle a couple
of edge cases where the postmaster is already gone.  Commit 815c2f09
missed one: EACCES must surely imply that PostmasterPid no longer
belongs to our postmaster process (or alternatively an unexpected
permissions model has been imposed on us).  Like ESRCH, this should be
treated as a WL_POSTMASTER_DEATH event, rather than being raised with
ereport().

No known problems reported in the wild.  Per code review from Tom Lane.
Back-patch to 13.

Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/3624029.1602701929%40sss.pgh.pa.us
2020-10-15 18:34:21 +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 Handle EACCES errors from kevent() better. 2020-10-15 18:34:21 +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