aboutsummaryrefslogtreecommitdiff
path: root/src/include/storage/proc.h
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2021-12-16 12:40:15 +1300
committerThomas Munro <tmunro@postgresql.org>2021-12-16 15:56:03 +1300
commita13db0e16404ae532fe037071c7fe2576a1f8890 (patch)
treedc19c338b46532e1f8a5b7688c2ac53a39738677 /src/include/storage/proc.h
parentbbc227e951ecc59a29205be4952a623e7d1dd534 (diff)
downloadpostgresql-a13db0e16404ae532fe037071c7fe2576a1f8890.tar.gz
postgresql-a13db0e16404ae532fe037071c7fe2576a1f8890.zip
Change ProcSendSignal() to take pgprocno.
Instead of referring to target backends by pid, use pgprocno. This means that we don't have to scan the ProcArray and we can drop some special case code for dealing with the startup process. Discussion: https://postgr.es/m/CA%2BhUKGLYRyDaneEwz5Uya_OgFLMx5BgJfkQSD%3Dq9HmwsfRRb-w%40mail.gmail.com Reviewed-by: Soumyadeep Chakraborty <soumyadeep2007@gmail.com> Reviewed-by: Ashwin Agrawal <ashwinstar@gmail.com> Reviewed-by: Andres Freund <andres@anarazel.de>
Diffstat (limited to 'src/include/storage/proc.h')
-rw-r--r--src/include/storage/proc.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h
index cfabfdbedf1..44b477f49d7 100644
--- a/src/include/storage/proc.h
+++ b/src/include/storage/proc.h
@@ -359,9 +359,6 @@ typedef struct PROC_HDR
Latch *checkpointerLatch;
/* Current shared estimate of appropriate spins_per_delay value */
int spins_per_delay;
- /* The proc of the Startup process, since not in ProcArray */
- PGPROC *startupProc;
- int startupProcPid;
/* Buffer id of the buffer that Startup process waits for pin on, or -1 */
int startupBufferPinWaitBufId;
} PROC_HDR;
@@ -402,7 +399,6 @@ extern void InitProcess(void);
extern void InitProcessPhase2(void);
extern void InitAuxiliaryProcess(void);
-extern void PublishStartupProcessInformation(void);
extern void SetStartupBufferPinWaitBufId(int bufid);
extern int GetStartupBufferPinWaitBufId(void);
@@ -418,7 +414,7 @@ extern bool IsWaitingForLock(void);
extern void LockErrorCleanup(void);
extern void ProcWaitForSignal(uint32 wait_event_info);
-extern void ProcSendSignal(int pid);
+extern void ProcSendSignal(int pgprocno);
extern PGPROC *AuxiliaryPidGetProc(int pid);