Commit 76e5b4c8 authored by Bruce Momjian's avatar Bruce Momjian

Add C comment about the fact that the autovacuum limit can go backwards

by 3, but that is it OK.
parent eff223ff
......@@ -1108,6 +1108,7 @@ do_start_worker(void)
recentXid = ReadNewTransactionId();
xidForceLimit = recentXid - autovacuum_freeze_max_age;
/* ensure it's a "normal" XID, else TransactionIdPrecedes misbehaves */
/* this can cause the limit to go backwards by 3, but that's OK */
if (xidForceLimit < FirstNormalTransactionId)
xidForceLimit -= FirstNormalTransactionId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment