Skip to content

Commit 76e5b4c

Browse files
committed
Add C comment about the fact that the autovacuum limit can go backwards
by 3, but that is it OK.
1 parent eff223f commit 76e5b4c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/postmaster/autovacuum.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,7 @@ do_start_worker(void)
11081108
recentXid = ReadNewTransactionId();
11091109
xidForceLimit = recentXid - autovacuum_freeze_max_age;
11101110
/* ensure it's a "normal" XID, else TransactionIdPrecedes misbehaves */
1111+
/* this can cause the limit to go backwards by 3, but that's OK */
11111112
if (xidForceLimit < FirstNormalTransactionId)
11121113
xidForceLimit -= FirstNormalTransactionId;
11131114

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy