From: Bruce Momjian Date: Wed, 30 Mar 2011 21:36:24 +0000 (-0400) Subject: Expand comment on how pg_upgrade is turning off autovacuum. X-Git-Tag: REL9_1_BETA1~185 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d609b08ead450d78d4a567c48111aca6857ec59c;p=postgresql Expand comment on how pg_upgrade is turning off autovacuum. --- diff --git a/contrib/pg_upgrade/server.c b/contrib/pg_upgrade/server.c index 4d5f37301b..9331667b8b 100644 --- a/contrib/pg_upgrade/server.c +++ b/contrib/pg_upgrade/server.c @@ -172,7 +172,9 @@ start_postmaster(ClusterInfo *cluster, bool quiet) * * Using autovacuum=off disables cleanup vacuum and analyze, but * freeze vacuums can still happen, so we set - * autovacuum_freeze_max_age high too. + * autovacuum_freeze_max_age very high. We assume all datfrozenxid and + * relfrozen values are less than a gap of 2000000000 from the current + * xid counter, so autovacuum will not touch them. */ snprintf(cmd, sizeof(cmd), SYSTEMQUOTE "\"%s/pg_ctl\" -l \"%s\" -D \"%s\" "