diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index bb06a2e016d..4e4ec1cb9a8 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -47,6 +47,7 @@ #include "storage/fd.h" #include "storage/ipc.h" #include "storage/pmsignal.h" +#include "storage/proc.h" #include "storage/procarray.h" #include "storage/smgr.h" #include "storage/spin.h" @@ -6135,6 +6136,7 @@ StartupXLOG(void) */ if (InArchiveRecovery && IsUnderPostmaster) { + PublishStartupProcessInformation(); SetForwardFsyncRequests(); SendPostmasterSignal(PMSIGNAL_RECOVERY_STARTED); bgwriterLaunched = true; diff --git a/src/backend/storage/ipc/standby.c b/src/backend/storage/ipc/standby.c index 8ddfa60b388..ce02fe76049 100644 --- a/src/backend/storage/ipc/standby.c +++ b/src/backend/storage/ipc/standby.c @@ -69,11 +69,6 @@ InitRecoveryTransactionEnvironment(void) */ SharedInvalBackendInit(true); - /* - * Record the PID and PGPROC structure of the startup process. - */ - PublishStartupProcessInformation(); - /* * Lock a virtual transaction id for Startup process. *