Skip to content

Commit d609b08

Browse files
committed
Expand comment on how pg_upgrade is turning off autovacuum.
1 parent 382fb6a commit d609b08

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contrib/pg_upgrade/server.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ start_postmaster(ClusterInfo *cluster, bool quiet)
172172
*
173173
* Using autovacuum=off disables cleanup vacuum and analyze, but
174174
* freeze vacuums can still happen, so we set
175-
* autovacuum_freeze_max_age high too.
175+
* autovacuum_freeze_max_age very high. We assume all datfrozenxid and
176+
* relfrozen values are less than a gap of 2000000000 from the current
177+
* xid counter, so autovacuum will not touch them.
176178
*/
177179
snprintf(cmd, sizeof(cmd),
178180
SYSTEMQUOTE "\"%s/pg_ctl\" -l \"%s\" -D \"%s\" "

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