summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2020-10-15 18:23:30 +1300
committerThomas Munro <tmunro@postgresql.org>2020-10-15 18:38:03 +1300
commit47522ee00ddbe77280e4c063605b443ec1de3881 (patch)
treec78cfcc9abc326ab64af59b960f521ca5997f647 /doc/src
parent53c07dbbf36855a4f5b11654106654b18e00ee15 (diff)
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
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions