diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 493f1db..805bbe1 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -6809,11 +6809,12 @@ StartupXLOG(void) StartupMultiXact(); /* - * Ditto commit timestamps. In a standby, we do it if setting is enabled - * in ControlFile; in a master we base the decision on the GUC itself. + * Ditto commit timestamps. In both a standby and a master, we do it if + * setting is enabled in ControlFile since we don't care about the commit + * timestamps of the transaction that were executed when the commit + * timestamp is disabled. */ - if (ArchiveRecoveryRequested ? - ControlFile->track_commit_timestamp : track_commit_timestamp) + if (ControlFile->track_commit_timestamp) StartupCommitTs(); /*