Skip to content

Commit d67b0bf

Browse files
committed
In pg_upgrade, add C comment about how autovacuum is disabled.
1 parent 6c0dfc0 commit d67b0bf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

contrib/pg_upgrade/server.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,11 @@ start_postmaster(ClusterInfo *cluster, bool quiet)
169169
* same file because we get the error: "The process cannot access the file
170170
* because it is being used by another process." so we have to send all
171171
* other output to 'nul'.
172-
*/
172+
*
173+
* Using autovacuum=off disables cleanup vacuum and analyze, but
174+
* freeze vacuums can still happen, so we set
175+
* autovacuum_freeze_max_age high too.
176+
*/
173177
snprintf(cmd, sizeof(cmd),
174178
SYSTEMQUOTE "\"%s/pg_ctl\" -l \"%s\" -D \"%s\" "
175179
"-o \"-p %d -c autovacuum=off "

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