Skip to content

Commit 4ff753c

Browse files
committed
Lower *_freeze_max_age minimum values.
The old minimum values are rather large, making it time consuming to test related behaviour. Additionally the current limits, especially for multixacts, can be problematic in space-constrained systems. 10000000 multixacts can contain a lot of members. Since there's no good reason for the current limits, lower them a good bit. Setting them to 0 would be a bad idea, triggering endless vacuums, so still retain a limit. While at it fix autovacuum_multixact_freeze_max_age to refer to multixact.c instead of varsup.c. Reviewed-By: Robert Haas Discussion: CA+TgmoYmQPHcrc3GSs7vwvrbTkbcGD9Gik=OztbDGGrovkkEzQ@mail.gmail.com Backpatch: back to 9.0 (in parts)
1 parent d546ce7 commit 4ff753c

File tree

1 file changed

+3
-3
lines changed
  • src/backend/utils/misc

1 file changed

+3
-3
lines changed

src/backend/utils/misc/guc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2393,17 +2393,17 @@ static struct config_int ConfigureNamesInt[] =
23932393
},
23942394
&autovacuum_freeze_max_age,
23952395
/* see pg_resetxlog if you change the upper-limit value */
2396-
200000000, 100000000, 2000000000,
2396+
200000000, 100000, 2000000000,
23972397
NULL, NULL, NULL
23982398
},
23992399
{
2400-
/* see varsup.c for why this is PGC_POSTMASTER not PGC_SIGHUP */
2400+
/* see multixact.c for why this is PGC_POSTMASTER not PGC_SIGHUP */
24012401
{"autovacuum_multixact_freeze_max_age", PGC_POSTMASTER, AUTOVACUUM,
24022402
gettext_noop("Multixact age at which to autovacuum a table to prevent multixact wraparound."),
24032403
NULL
24042404
},
24052405
&autovacuum_multixact_freeze_max_age,
2406-
400000000, 10000000, 2000000000,
2406+
400000000, 10000, 2000000000,
24072407
NULL, NULL, NULL
24082408
},
24092409
{

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