@@ -7927,7 +7927,7 @@ ShutdownXLOG(int code, Datum arg)
7927
7927
{
7928
7928
/* Don't be chatty in standalone mode */
7929
7929
ereport (IsPostmasterEnvironment ? LOG : NOTICE ,
7930
- (errmsg ("shutting down at %s" , current_time_as_str () )));
7930
+ (errmsg ("shutting down" )));
7931
7931
7932
7932
if (RecoveryInProgress ())
7933
7933
CreateRestartPoint (CHECKPOINT_IS_SHUTDOWN | CHECKPOINT_IMMEDIATE );
@@ -7943,28 +7943,15 @@ ShutdownXLOG(int code, Datum arg)
7943
7943
RequestXLogSwitch ();
7944
7944
7945
7945
CreateCheckPoint (CHECKPOINT_IS_SHUTDOWN | CHECKPOINT_IMMEDIATE );
7946
-
7947
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
7948
- "shutdown checkpoint complete at %s" ,
7949
- current_time_as_str ());
7950
7946
}
7951
7947
ShutdownCLOG ();
7952
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
7953
- "ShutdownCLOG() complete at %s" ,
7954
- current_time_as_str ());
7955
7948
ShutdownCommitTs ();
7956
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
7957
- "ShutdownCommitTs() complete at %s" ,
7958
- current_time_as_str ());
7959
7949
ShutdownSUBTRANS ();
7960
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
7961
- "ShutdownSUBTRANS() complete at %s" ,
7962
- current_time_as_str ());
7963
7950
ShutdownMultiXact ();
7964
7951
7965
7952
/* Don't be chatty in standalone mode */
7966
7953
ereport (IsPostmasterEnvironment ? LOG : NOTICE ,
7967
- (errmsg ("database system is shut down at %s" , current_time_as_str () )));
7954
+ (errmsg ("database system is shut down" )));
7968
7955
}
7969
7956
7970
7957
/*
@@ -8436,9 +8423,6 @@ CreateCheckPoint(int flags)
8436
8423
8437
8424
XLogFlush (recptr );
8438
8425
8439
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8440
- "checkpoint WAL record flushed at %s" , current_time_as_str ());
8441
-
8442
8426
/*
8443
8427
* We mustn't write any new WAL after a shutdown checkpoint, or it will be
8444
8428
* overwritten at next startup. No-one should even try, this just allows
@@ -8494,9 +8478,6 @@ CreateCheckPoint(int flags)
8494
8478
UpdateControlFile ();
8495
8479
LWLockRelease (ControlFileLock );
8496
8480
8497
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8498
- "pg_control updated at %s" , current_time_as_str ());
8499
-
8500
8481
/* Update shared-memory copy of checkpoint XID/epoch */
8501
8482
SpinLockAcquire (& XLogCtl -> info_lck );
8502
8483
XLogCtl -> ckptXidEpoch = checkPoint .nextXidEpoch ;
@@ -8514,9 +8495,6 @@ CreateCheckPoint(int flags)
8514
8495
*/
8515
8496
smgrpostckpt ();
8516
8497
8517
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8518
- "smgrpostckpt() done at %s" , current_time_as_str ());
8519
-
8520
8498
/*
8521
8499
* Delete old log files (those no longer needed even for previous
8522
8500
* checkpoint or the standbys in XLOG streaming).
@@ -8532,9 +8510,6 @@ CreateCheckPoint(int flags)
8532
8510
KeepLogSeg (recptr , & _logSegNo );
8533
8511
_logSegNo -- ;
8534
8512
RemoveOldXlogFiles (_logSegNo , PriorRedoPtr , recptr );
8535
-
8536
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8537
- "RemoveOldXlogFiles() done at %s" , current_time_as_str ());
8538
8513
}
8539
8514
8540
8515
/*
@@ -8552,11 +8527,7 @@ CreateCheckPoint(int flags)
8552
8527
* StartupSUBTRANS hasn't been called yet.
8553
8528
*/
8554
8529
if (!RecoveryInProgress ())
8555
- {
8556
8530
TruncateSUBTRANS (GetOldestXmin (NULL , false));
8557
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8558
- "TruncateSUBTRANS() done at %s" , current_time_as_str ());
8559
- }
8560
8531
8561
8532
/* Real work is done, but log and update stats before releasing lock. */
8562
8533
LogCheckpointEnd (false);
@@ -8631,45 +8602,19 @@ CreateEndOfRecoveryRecord(void)
8631
8602
static void
8632
8603
CheckPointGuts (XLogRecPtr checkPointRedo , int flags )
8633
8604
{
8634
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8635
- "CheckPointGuts starting at %s" , current_time_as_str ());
8636
8605
CheckPointCLOG ();
8637
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8638
- "CheckPointCLOG() done at %s" , current_time_as_str ());
8639
8606
CheckPointCommitTs ();
8640
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8641
- "CheckPointCommitTs() done at %s" , current_time_as_str ());
8642
8607
CheckPointSUBTRANS ();
8643
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8644
- "CheckPointSUBTRANS() done at %s" , current_time_as_str ());
8645
8608
CheckPointMultiXact ();
8646
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8647
- "CheckPointMultiXact() done at %s" , current_time_as_str ());
8648
8609
CheckPointPredicate ();
8649
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8650
- "CheckPointPredicate() done at %s" , current_time_as_str ());
8651
8610
CheckPointRelationMap ();
8652
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8653
- "CheckPointRelationMap() done at %s" , current_time_as_str ());
8654
8611
CheckPointReplicationSlots ();
8655
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8656
- "CheckPointReplicationSlots() done at %s" , current_time_as_str ());
8657
8612
CheckPointSnapBuild ();
8658
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8659
- "CheckPointSnapBuild() done at %s" , current_time_as_str ());
8660
8613
CheckPointLogicalRewriteHeap ();
8661
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8662
- "CheckPointLogicalRewriteHeap() done at %s" , current_time_as_str ());
8663
8614
CheckPointBuffers (flags ); /* performs all required fsyncs */
8664
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8665
- "CheckPointBuffers() done at %s" , current_time_as_str ());
8666
8615
CheckPointReplicationOrigin ();
8667
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8668
- "CheckPointReplicationOrigin() done at %s" , current_time_as_str ());
8669
8616
/* We deliberately delay 2PC checkpointing as long as possible */
8670
8617
CheckPointTwoPhase (checkPointRedo );
8671
- elog (IsPostmasterEnvironment ? LOG : NOTICE ,
8672
- "CheckPointGuts done at %s" , current_time_as_str ());
8673
8618
}
8674
8619
8675
8620
/*
0 commit comments