aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/vacuum.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/commands/vacuum.c')
-rw-r--r--src/backend/commands/vacuum.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/commands/vacuum.c b/src/backend/commands/vacuum.c
index 260eab82d1b..51c44c80dd5 100644
--- a/src/backend/commands/vacuum.c
+++ b/src/backend/commands/vacuum.c
@@ -13,7 +13,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/commands/vacuum.c,v 1.392 2009/09/01 02:54:51 alvherre Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/vacuum.c,v 1.393 2009/09/01 04:46:49 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -893,9 +893,10 @@ vac_update_datfrozenxid(void)
/*
* If we were able to advance datfrozenxid, see if we can truncate pg_clog.
- * Also do it if the shared XID-wrap-limit info is stale.
+ * Also do it if the shared XID-wrap-limit info is stale, since this
+ * action will update that too.
*/
- if (dirty || !TransactionIdLimitIsValid())
+ if (dirty || ForceTransactionIdLimitUpdate())
vac_truncate_clog(newFrozenXid);
}