This is an automated email from the ASF dual-hosted git repository. avamingli pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/cloudberry.git
commit 86ccd8c5e305f25358bd48fe8c43cd825baa40e0 Author: Brent Doil <[email protected]> AuthorDate: Tue Apr 18 11:38:24 2023 -0400 Revive previously defunct autovacuum GUCs Authored-by: Brent Doil <[email protected]> --- src/backend/utils/misc/guc.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index e80915487e..59cfd86cec 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -3345,10 +3345,9 @@ static struct config_int ConfigureNamesInt[] = NULL, NULL, NULL }, { - {"autovacuum_vacuum_threshold", PGC_SIGHUP, DEFUNCT_OPTIONS, + {"autovacuum_vacuum_threshold", PGC_SIGHUP, AUTOVACUUM, gettext_noop("Minimum number of tuple updates or deletes prior to vacuum."), - NULL, - GUC_NOT_IN_SAMPLE | GUC_NO_SHOW_ALL + NULL }, &autovacuum_vac_thresh, 50, 0, INT_MAX, @@ -3374,10 +3373,9 @@ static struct config_int ConfigureNamesInt[] = }, { /* see varsup.c for why this is PGC_POSTMASTER not PGC_SIGHUP */ - {"autovacuum_freeze_max_age", PGC_POSTMASTER, DEFUNCT_OPTIONS, + {"autovacuum_freeze_max_age", PGC_POSTMASTER, AUTOVACUUM, gettext_noop("Age at which to autovacuum a table to prevent transaction ID wraparound."), - NULL, - GUC_NOT_IN_SAMPLE | GUC_NO_SHOW_ALL + NULL }, &autovacuum_freeze_max_age, @@ -3850,10 +3848,10 @@ static struct config_real ConfigureNamesReal[] = }, { - {"autovacuum_vacuum_cost_delay", PGC_SIGHUP, DEFUNCT_OPTIONS, + {"autovacuum_vacuum_cost_delay", PGC_SIGHUP, AUTOVACUUM, gettext_noop("Vacuum cost delay in milliseconds, for autovacuum."), NULL, - GUC_UNIT_MS | GUC_NOT_IN_SAMPLE | GUC_NO_SHOW_ALL + GUC_UNIT_MS }, &autovacuum_vac_cost_delay, 2, -1, 100, @@ -3863,8 +3861,7 @@ static struct config_real ConfigureNamesReal[] = { {"autovacuum_vacuum_scale_factor", PGC_SIGHUP, AUTOVACUUM, gettext_noop("Number of tuple updates or deletes prior to vacuum as a fraction of reltuples."), - NULL, - GUC_NOT_IN_SAMPLE | GUC_NO_SHOW_ALL + NULL }, &autovacuum_vac_scale, 0.2, 0.0, 100.0, --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
