mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Add C comment about the fact that the autovacuum limit can go backwards
by 3, but that is it OK.
This commit is contained in:
parent
eff223ffd7
commit
76e5b4c85d
@ -1108,6 +1108,7 @@ do_start_worker(void)
|
|||||||
recentXid = ReadNewTransactionId();
|
recentXid = ReadNewTransactionId();
|
||||||
xidForceLimit = recentXid - autovacuum_freeze_max_age;
|
xidForceLimit = recentXid - autovacuum_freeze_max_age;
|
||||||
/* ensure it's a "normal" XID, else TransactionIdPrecedes misbehaves */
|
/* 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)
|
if (xidForceLimit < FirstNormalTransactionId)
|
||||||
xidForceLimit -= FirstNormalTransactionId;
|
xidForceLimit -= FirstNormalTransactionId;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user