summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorHeikki Linnakangas2024-10-08 12:06:34 +0000
committerHeikki Linnakangas2024-10-08 12:06:34 +0000
commit2bbc261ddbdfee2def5d14ee9fcc09c70bdf84e6 (patch)
treee163ad3a84702214f2bd678de341b15e612246e4 /src/include
parent85ec945b7880931cb506392101cb0b00209b78ba (diff)
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/include')
-rw-r--r--src/include/storage/pmsignal.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/include/storage/pmsignal.h b/src/include/storage/pmsignal.h
index e5be0f121c2..ce4620af1f3 100644
--- a/src/include/storage/pmsignal.h
+++ b/src/include/storage/pmsignal.h
@@ -73,8 +73,7 @@ extern QuitSignalReason GetQuitSignalReason(void);
extern int AssignPostmasterChildSlot(void);
extern bool ReleasePostmasterChildSlot(int slot);
extern bool IsPostmasterChildWalSender(int slot);
-extern void MarkPostmasterChildActive(void);
-extern void MarkPostmasterChildInactive(void);
+extern void RegisterPostmasterChildActive(void);
extern void MarkPostmasterChildWalSender(void);
extern bool PostmasterIsAliveInternal(void);
extern void PostmasterDeathSignalInit(void);