Set ArchiveRecoveryRequested similar to upstream.
Important Note: With this commit, now mirrors will have Checkpointer and Writer
processes created, similar to upstream. This should help improve the performance
and reduce the burden on single startup process to do all the work.
@@ -4586,6 +4586,9 @@ XLogReadRecoveryCommandFile(int emode)
RECOVERY_COMMAND_FILE)));
}
+ /* Enable fetching from archive recovery area */
+ ArchiveRecoveryRequested = true;
+
FreeConfigVariables(head);
}
@@ -5372,10 +5375,6 @@ StartupXLOG(void)
archiveCleanupCommand ? archiveCleanupCommand : "",
sizeof(XLogCtl->archiveCleanupCommand));
- if (StandbyModeRequested)
- ereport(LOG,
- (errmsg("entering standby mode")));
-
if (ArchiveRecoveryRequested)
{
if (StandbyModeRequested)
