Skip to content

Commit 1db4e5a

Browse files
committed
pgstat: rename STATS_COLLECTOR GUC group to STATS_CUMULATIVE.
Reviewed-By: Kyotaro Horiguchi <horikyota.ntt@gmail.com> Author: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/20220303021600.hs34ghqcw6zcokdh@alap3.anarazel.de
1 parent 6f0cf87 commit 1db4e5a

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/backend/utils/misc/guc.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -810,8 +810,8 @@ const char *const config_group_names[] =
810810
gettext_noop("Reporting and Logging / Process Title"),
811811
/* STATS_MONITORING */
812812
gettext_noop("Statistics / Monitoring"),
813-
/* STATS_COLLECTOR */
814-
gettext_noop("Statistics / Query and Index Statistics Collector"),
813+
/* STATS_CUMULATIVE */
814+
gettext_noop("Statistics / Cumulative Query and Index Statistics"),
815815
/* AUTOVACUUM */
816816
gettext_noop("Autovacuum"),
817817
/* CLIENT_CONN_STATEMENT */
@@ -1548,7 +1548,7 @@ static struct config_bool ConfigureNamesBool[] =
15481548
#endif
15491549

15501550
{
1551-
{"track_activities", PGC_SUSET, STATS_COLLECTOR,
1551+
{"track_activities", PGC_SUSET, STATS_CUMULATIVE,
15521552
gettext_noop("Collects information about executing commands."),
15531553
gettext_noop("Enables the collection of information on the currently "
15541554
"executing command of each session, along with "
@@ -1559,7 +1559,7 @@ static struct config_bool ConfigureNamesBool[] =
15591559
NULL, NULL, NULL
15601560
},
15611561
{
1562-
{"track_counts", PGC_SUSET, STATS_COLLECTOR,
1562+
{"track_counts", PGC_SUSET, STATS_CUMULATIVE,
15631563
gettext_noop("Collects statistics on database activity."),
15641564
NULL
15651565
},
@@ -1568,7 +1568,7 @@ static struct config_bool ConfigureNamesBool[] =
15681568
NULL, NULL, NULL
15691569
},
15701570
{
1571-
{"track_io_timing", PGC_SUSET, STATS_COLLECTOR,
1571+
{"track_io_timing", PGC_SUSET, STATS_CUMULATIVE,
15721572
gettext_noop("Collects timing statistics for database I/O activity."),
15731573
NULL
15741574
},
@@ -1577,7 +1577,7 @@ static struct config_bool ConfigureNamesBool[] =
15771577
NULL, NULL, NULL
15781578
},
15791579
{
1580-
{"track_wal_io_timing", PGC_SUSET, STATS_COLLECTOR,
1580+
{"track_wal_io_timing", PGC_SUSET, STATS_CUMULATIVE,
15811581
gettext_noop("Collects timing statistics for WAL I/O activity."),
15821582
NULL
15831583
},
@@ -3539,7 +3539,7 @@ static struct config_int ConfigureNamesInt[] =
35393539
},
35403540

35413541
{
3542-
{"track_activity_query_size", PGC_POSTMASTER, STATS_COLLECTOR,
3542+
{"track_activity_query_size", PGC_POSTMASTER, STATS_CUMULATIVE,
35433543
gettext_noop("Sets the size reserved for pg_stat_activity.query, in bytes."),
35443544
NULL,
35453545
GUC_UNIT_BYTE
@@ -4907,7 +4907,7 @@ static struct config_enum ConfigureNamesEnum[] =
49074907
},
49084908

49094909
{
4910-
{"track_functions", PGC_SUSET, STATS_COLLECTOR,
4910+
{"track_functions", PGC_SUSET, STATS_CUMULATIVE,
49114911
gettext_noop("Collects function-level statistics on database activity."),
49124912
NULL
49134913
},
@@ -4918,7 +4918,7 @@ static struct config_enum ConfigureNamesEnum[] =
49184918

49194919

49204920
{
4921-
{"stats_fetch_consistency", PGC_USERSET, STATS_COLLECTOR,
4921+
{"stats_fetch_consistency", PGC_USERSET, STATS_CUMULATIVE,
49224922
gettext_noop("Sets the consistency of accesses to statistics data"),
49234923
NULL
49244924
},

src/backend/utils/misc/postgresql.conf.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@
605605
# STATISTICS
606606
#------------------------------------------------------------------------------
607607

608-
# - Query and Index Statistics Collector -
608+
# - Cumulative Query and Index Statistics -
609609

610610
#track_activities = on
611611
#track_activity_query_size = 1024 # (change requires restart)

src/include/utils/guc_tables.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ enum config_group
8282
LOGGING_WHAT,
8383
PROCESS_TITLE,
8484
STATS_MONITORING,
85-
STATS_COLLECTOR,
85+
STATS_CUMULATIVE,
8686
AUTOVACUUM,
8787
CLIENT_CONN_STATEMENT,
8888
CLIENT_CONN_LOCALE,

0 commit comments

Comments
 (0)