@@ -7927,7 +7927,7 @@ ShutdownXLOG(int code, Datum arg)
79277927{
79287928 /* Don't be chatty in standalone mode */
79297929 ereport (IsPostmasterEnvironment ? LOG : NOTICE ,
7930- (errmsg ("shutting down at %s" , current_time_as_str () )));
7930+ (errmsg ("shutting down" )));
79317931
79327932 if (RecoveryInProgress ())
79337933 CreateRestartPoint (CHECKPOINT_IS_SHUTDOWN | CHECKPOINT_IMMEDIATE );
@@ -7943,28 +7943,15 @@ ShutdownXLOG(int code, Datum arg)
79437943 RequestXLogSwitch ();
79447944
79457945 CreateCheckPoint (CHECKPOINT_IS_SHUTDOWN | CHECKPOINT_IMMEDIATE );
7946-
7947- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
7948- "shutdown checkpoint complete at %s" ,
7949- current_time_as_str ());
79507946 }
79517947 ShutdownCLOG ();
7952- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
7953- "ShutdownCLOG() complete at %s" ,
7954- current_time_as_str ());
79557948 ShutdownCommitTs ();
7956- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
7957- "ShutdownCommitTs() complete at %s" ,
7958- current_time_as_str ());
79597949 ShutdownSUBTRANS ();
7960- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
7961- "ShutdownSUBTRANS() complete at %s" ,
7962- current_time_as_str ());
79637950 ShutdownMultiXact ();
79647951
79657952 /* Don't be chatty in standalone mode */
79667953 ereport (IsPostmasterEnvironment ? LOG : NOTICE ,
7967- (errmsg ("database system is shut down at %s" , current_time_as_str () )));
7954+ (errmsg ("database system is shut down" )));
79687955}
79697956
79707957/*
@@ -8436,9 +8423,6 @@ CreateCheckPoint(int flags)
84368423
84378424 XLogFlush (recptr );
84388425
8439- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8440- "checkpoint WAL record flushed at %s" , current_time_as_str ());
8441-
84428426 /*
84438427 * We mustn't write any new WAL after a shutdown checkpoint, or it will be
84448428 * overwritten at next startup. No-one should even try, this just allows
@@ -8494,9 +8478,6 @@ CreateCheckPoint(int flags)
84948478 UpdateControlFile ();
84958479 LWLockRelease (ControlFileLock );
84968480
8497- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8498- "pg_control updated at %s" , current_time_as_str ());
8499-
85008481 /* Update shared-memory copy of checkpoint XID/epoch */
85018482 SpinLockAcquire (& XLogCtl -> info_lck );
85028483 XLogCtl -> ckptXidEpoch = checkPoint .nextXidEpoch ;
@@ -8514,9 +8495,6 @@ CreateCheckPoint(int flags)
85148495 */
85158496 smgrpostckpt ();
85168497
8517- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8518- "smgrpostckpt() done at %s" , current_time_as_str ());
8519-
85208498 /*
85218499 * Delete old log files (those no longer needed even for previous
85228500 * checkpoint or the standbys in XLOG streaming).
@@ -8532,9 +8510,6 @@ CreateCheckPoint(int flags)
85328510 KeepLogSeg (recptr , & _logSegNo );
85338511 _logSegNo -- ;
85348512 RemoveOldXlogFiles (_logSegNo , PriorRedoPtr , recptr );
8535-
8536- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8537- "RemoveOldXlogFiles() done at %s" , current_time_as_str ());
85388513 }
85398514
85408515 /*
@@ -8552,11 +8527,7 @@ CreateCheckPoint(int flags)
85528527 * StartupSUBTRANS hasn't been called yet.
85538528 */
85548529 if (!RecoveryInProgress ())
8555- {
85568530 TruncateSUBTRANS (GetOldestXmin (NULL , false));
8557- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8558- "TruncateSUBTRANS() done at %s" , current_time_as_str ());
8559- }
85608531
85618532 /* Real work is done, but log and update stats before releasing lock. */
85628533 LogCheckpointEnd (false);
@@ -8631,45 +8602,19 @@ CreateEndOfRecoveryRecord(void)
86318602static void
86328603CheckPointGuts (XLogRecPtr checkPointRedo , int flags )
86338604{
8634- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8635- "CheckPointGuts starting at %s" , current_time_as_str ());
86368605 CheckPointCLOG ();
8637- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8638- "CheckPointCLOG() done at %s" , current_time_as_str ());
86398606 CheckPointCommitTs ();
8640- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8641- "CheckPointCommitTs() done at %s" , current_time_as_str ());
86428607 CheckPointSUBTRANS ();
8643- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8644- "CheckPointSUBTRANS() done at %s" , current_time_as_str ());
86458608 CheckPointMultiXact ();
8646- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8647- "CheckPointMultiXact() done at %s" , current_time_as_str ());
86488609 CheckPointPredicate ();
8649- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8650- "CheckPointPredicate() done at %s" , current_time_as_str ());
86518610 CheckPointRelationMap ();
8652- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8653- "CheckPointRelationMap() done at %s" , current_time_as_str ());
86548611 CheckPointReplicationSlots ();
8655- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8656- "CheckPointReplicationSlots() done at %s" , current_time_as_str ());
86578612 CheckPointSnapBuild ();
8658- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8659- "CheckPointSnapBuild() done at %s" , current_time_as_str ());
86608613 CheckPointLogicalRewriteHeap ();
8661- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8662- "CheckPointLogicalRewriteHeap() done at %s" , current_time_as_str ());
86638614 CheckPointBuffers (flags ); /* performs all required fsyncs */
8664- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8665- "CheckPointBuffers() done at %s" , current_time_as_str ());
86668615 CheckPointReplicationOrigin ();
8667- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8668- "CheckPointReplicationOrigin() done at %s" , current_time_as_str ());
86698616 /* We deliberately delay 2PC checkpointing as long as possible */
86708617 CheckPointTwoPhase (checkPointRedo );
8671- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8672- "CheckPointGuts done at %s" , current_time_as_str ());
86738618}
86748619
86758620/*
0 commit comments