Skip to content

Commit ef4fccd

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 cfb2024 commit ef4fccd

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -2511,17 +2511,17 @@ static struct config_int ConfigureNamesInt[] =
25112511
},
25122512
&autovacuum_freeze_max_age,
25132513
/* see pg_resetxlog if you change the upper-limit value */
2514-
200000000, 100000000, 2000000000,
2514+
200000000, 100000, 2000000000,
25152515
NULL, NULL, NULL
25162516
},
25172517
{
2518-
/* see varsup.c for why this is PGC_POSTMASTER not PGC_SIGHUP */
2518+
/* see multixact.c for why this is PGC_POSTMASTER not PGC_SIGHUP */
25192519
{"autovacuum_multixact_freeze_max_age", PGC_POSTMASTER, AUTOVACUUM,
25202520
gettext_noop("Multixact age at which to autovacuum a table to prevent multixact wraparound."),
25212521
NULL
25222522
},
25232523
&autovacuum_multixact_freeze_max_age,
2524-
400000000, 10000000, 2000000000,
2524+
400000000, 10000, 2000000000,
25252525
NULL, NULL, NULL
25262526
},
25272527
{

0 commit comments

Comments
 (0)