File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/backend/access/transam Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -5343,13 +5343,13 @@ StartupXLOG(void)
5343
5343
else if (!TransactionIdIsValid (checkPoint .oldestActiveXid ))
5344
5344
{
5345
5345
/*
5346
- * It should not actually happen: PS oldestActiveXid
5347
- * from running xacts WAL records and include it in checkpoint
5348
- * sent in basebackup.
5349
- * FirstNormalTransactionId is conservative estimation of oldest active XACT, unless
5350
- * current XID is greater than 1^31. So it is also not 100% safe solution but better than assertion failure.
5346
+ * Pageserver extracts oldestActiveXid from snapshot and running xacts WAL records
5347
+ * and include it in checkpoint sent in basebackup.
5348
+ * So oldestActiveXid can be zero only after database initialization when no checkpoints are yet performed
5349
+ * and not running xacts records was logged.
5350
+ * In this case it is possible to use FirstNormalTransactionId as safe conservative estimation
5351
+ * of oldest active transaction XID.
5351
5352
*/
5352
- elog (FATAL , "oldestActiveXid=%d" , checkPoint .oldestActiveXid );
5353
5353
checkPoint .oldestActiveXid = FirstNormalTransactionId ;
5354
5354
}
5355
5355
}
You can’t perform that action at this time.
0 commit comments