diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-10-08 15:06:34 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-10-08 15:06:34 +0300 |
commit | 2bbc261ddbdfee2def5d14ee9fcc09c70bdf84e6 (patch) | |
tree | e163ad3a84702214f2bd678de341b15e612246e4 /src/backend/utils/adt/arrayfuncs.c | |
parent | 85ec945b7880931cb506392101cb0b00209b78ba (diff) | |
download | postgresql-2bbc261ddbdfee2def5d14ee9fcc09c70bdf84e6.tar.gz postgresql-2bbc261ddbdfee2def5d14ee9fcc09c70bdf84e6.zip |
Use an shmem_exit callback to remove backend from PMChildFlags on exit
This seems nicer than having to duplicate the logic between
InitProcess() and ProcKill() for which child processes have a
PMChildFlags slot.
Move the MarkPostmasterChildActive() call earlier in InitProcess(),
out of the section protected by the spinlock.
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://www.postgresql.org/message-id/a102f15f-eac4-4ff2-af02-f9ff209ec66f@iki.fi
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions