diff options
author | Bruce Momjian <bruce@momjian.us> | 2011-03-29 11:11:12 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2011-03-29 11:11:45 -0400 |
commit | d67b0bf471ba4e88aa3ed50871924efc91d7a27e (patch) | |
tree | 888fcd0ec0b01aadecb7ab9397bebd9c291b1d13 | |
parent | 6c0dfc035670240cddf0092a4aa22e5815b6583d (diff) | |
download | postgresql-d67b0bf471ba4e88aa3ed50871924efc91d7a27e.tar.gz postgresql-d67b0bf471ba4e88aa3ed50871924efc91d7a27e.zip |
In pg_upgrade, add C comment about how autovacuum is disabled.
-rw-r--r-- | contrib/pg_upgrade/server.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/pg_upgrade/server.c b/contrib/pg_upgrade/server.c index 84bd03ed8ed..4d5f37301b4 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 " |