*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.306 2003/01/25 05:19:46 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.307 2003/02/23 04:48:19 tgl Exp $
*
* NOTES
*
ExitPostmaster(1);
}
StartupPID = 0;
+
+ /*
+ * Startup succeeded - remember its ID and RedoRecPtr.
+ *
+ * NB: this MUST happen before we fork a checkpoint or shutdown
+ * subprocess, else they will have wrong local ThisStartUpId.
+ */
+ SetThisStartUpID();
+
FatalError = false; /* done with recovery */
+
+ /*
+ * Arrange for first checkpoint to occur after standard delay.
+ */
+ CheckPointPID = 0;
+ checkpointed = time(NULL);
+
+ /*
+ * Go to shutdown mode if a shutdown request was pending.
+ */
if (Shutdown > NoShutdown)
{
if (ShutdownPID > 0)
ShutdownPID = ShutdownDataBase();
}
- /*
- * Startup succeeded - remember its ID and RedoRecPtr
- */
- SetThisStartUpID();
-
- /*
- * Arrange for first checkpoint to occur after standard delay.
- */
- CheckPointPID = 0;
- checkpointed = time(NULL);
-
goto reaper_done;
}