From: Bruce Momjian Date: Tue, 29 Mar 2011 15:11:12 +0000 (-0400) Subject: In pg_upgrade, add C comment about how autovacuum is disabled. X-Git-Tag: bdr/0.1~3286 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=d67b0bf471ba4e88aa3ed50871924efc91d7a27e;p=users%2Fandresfreund%2Fpostgres.git In pg_upgrade, add C comment about how autovacuum is disabled. --- diff --git a/contrib/pg_upgrade/server.c b/contrib/pg_upgrade/server.c index 84bd03ed8e..4d5f37301b 100644 --- a/contrib/pg_upgrade/server.c +++ b/contrib/pg_upgrade/server.c @@ -169,7 +169,11 @@ start_postmaster(ClusterInfo *cluster, bool quiet) * same file because we get the error: "The process cannot access the file * because it is being used by another process." so we have to send all * other output to 'nul'. - */ + * + * Using autovacuum=off disables cleanup vacuum and analyze, but + * freeze vacuums can still happen, so we set + * autovacuum_freeze_max_age high too. + */ snprintf(cmd, sizeof(cmd), SYSTEMQUOTE "\"%s/pg_ctl\" -l \"%s\" -D \"%s\" " "-o \"-p %d -c autovacuum=off "