postgresql/src/backend
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
..
access Fix GiST buffering build to work when there are included columns. 2020-10-12 18:01:34 -04:00
bootstrap Make postgres.bki use the same literal-string syntax as postgresql.conf. 2020-10-04 16:09:55 -04:00
catalog Track statistics for spilling of changes from ReorderBuffer. 2020-10-08 09:09:08 +05:30
commands Remove es_result_relation_info from EState. 2020-10-14 11:41:40 +03:00
executor Remove es_result_relation_info from EState. 2020-10-14 11:41:40 +03:00
foreign Update copyrights for 2020 2020-01-01 12:21:45 -05:00
jit Move resolution of AlternativeSubPlan choices to the planner. 2020-09-27 12:51:28 -04:00
lib Use pg_bitutils for HyperLogLog. 2020-07-30 09:14:23 -07:00
libpq Overhaul pg_hba.conf clientcert's API 2020-10-05 15:48:50 -04:00
main Clean up includes of s_lock.h. 2020-06-18 19:41:05 -07:00
nodes Include result relation info in direct modify ForeignScan nodes. 2020-10-14 10:58:38 +03:00
optimizer Include result relation info in direct modify ForeignScan nodes. 2020-10-14 10:58:38 +03:00
parser Correct error message 2020-10-14 07:54:14 +02:00
partitioning Improve error cursor positions for problems with partition bounds. 2020-09-23 18:04:53 -04:00
po Translation updates 2020-05-18 12:49:30 +02:00
port Recognize network-failure errnos as indicating hard connection loss. 2020-10-10 13:28:12 -04:00
postmaster Track statistics for spilling of changes from ReorderBuffer. 2020-10-08 09:09:08 +05:30
regex Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
replication Execute invalidation messages for each XLOG_XACT_INVALIDATIONS message 2020-10-15 08:17:51 +05:30
rewrite Redefine pg_class.reltuples to be -1 before the first VACUUM or ANALYZE. 2020-08-30 12:21:51 -04:00
snowball code: replace most remaining uses of 'master'. 2020-07-08 13:24:35 -07:00
statistics Remove some more useless assignments. 2020-09-04 14:32:19 -04:00
storage Handle EACCES errors from kevent() better. 2020-10-15 18:34:21 +13:00
tcop Fix bogus completion tag usage in walsender 2020-09-16 21:16:25 -03:00
tsearch Improve behavior of tsearch_readline(), and remove t_readline(). 2020-09-23 20:26:58 -04:00
utils Fix memory leak when guc.c decides a setting can't be applied now. 2020-10-12 13:31:24 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Add missing gettext triggers 2020-04-28 13:35:40 +02:00