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 @@ -5194,13 +5194,13 @@ StartupXLOG(void)
5194
5194
else if (!TransactionIdIsValid (checkPoint .oldestActiveXid ))
5195
5195
{
5196
5196
/*
5197
- * It should not actually happen: PS oldestActiveXid
5198
- * from running xacts WAL records and include it in checkpoint
5199
- * sent in basebackup.
5200
- * FirstNormalTransactionId is conservative estimation of oldest active XACT, unless
5201
- * current XID is greater than 1^31. So it is also not 100% safe solution but better than assertion failure.
5197
+ * Pageserver extracts oldestActiveXid from snapshot and running xacts WAL records
5198
+ * and include it in checkpoint sent in basebackup.
5199
+ * So oldestActiveXid can be zero only after database initialization when no checkpoints are yet performed
5200
+ * and not running xacts records was logged.
5201
+ * In this case it is possible to use FirstNormalTransactionId as safe conservative estimation
5202
+ * of oldest active transaction XID.
5202
5203
*/
5203
- elog (FATAL , "oldestActiveXid=%d" , checkPoint .oldestActiveXid );
5204
5204
checkPoint .oldestActiveXid = FirstNormalTransactionId ;
5205
5205
}
5206
5206
}
You can’t perform that action at this time.
0 commit comments