mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
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>
This commit is contained in:
@ -7519,9 +7519,6 @@ StartupXLOG(void)
|
||||
/* Also ensure XLogReceiptTime has a sane value */
|
||||
XLogReceiptTime = GetCurrentTimestamp();
|
||||
|
||||
/* Allow ProcSendSignal() to find us, for buffer pin wakeups. */
|
||||
PublishStartupProcessInformation();
|
||||
|
||||
/*
|
||||
* Let postmaster know we've started redo now, so that it can launch
|
||||
* the archiver if necessary.
|
||||
|
Reference in New Issue
Block a user