From 859bc14b27b0e2f1695626dddf110f9c0d46fafc Mon Sep 17 00:00:00 2001
From: Andres Freund <andres@anarazel.de>
Date: Fri, 2 Apr 2021 16:36:26 -0700
Subject: [PATCH v60 15/17] pgstat: Rename STATS_COLLECTOR GUC group to
 STATS_ACTIVITY.

---
 src/include/utils/guc_tables.h |  2 +-
 src/backend/utils/misc/guc.c   | 18 +++++++++---------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/include/utils/guc_tables.h b/src/include/utils/guc_tables.h
index b9b5c1addac..add9c53ee3e 100644
--- a/src/include/utils/guc_tables.h
+++ b/src/include/utils/guc_tables.h
@@ -88,7 +88,7 @@ enum config_group
 	PROCESS_TITLE,
 	STATS,
 	STATS_MONITORING,
-	STATS_COLLECTOR,
+	STATS_ACTIVITY,
 	AUTOVACUUM,
 	CLIENT_CONN,
 	CLIENT_CONN_STATEMENT,
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index 2ec8ae52941..9c6ad42a7f9 100644
--- a/src/backend/utils/misc/guc.c
+++ b/src/backend/utils/misc/guc.c
@@ -778,8 +778,8 @@ const char *const config_group_names[] =
 	gettext_noop("Statistics"),
 	/* STATS_MONITORING */
 	gettext_noop("Statistics / Monitoring"),
-	/* STATS_COLLECTOR */
-	gettext_noop("Statistics / Query and Index Statistics Collector"),
+	/* STATS_ACTIVITY */
+	gettext_noop("Statistics / Query and Index Activity Statistics"),
 	/* AUTOVACUUM */
 	gettext_noop("Autovacuum"),
 	/* CLIENT_CONN */
@@ -1518,7 +1518,7 @@ static struct config_bool ConfigureNamesBool[] =
 #endif
 
 	{
-		{"track_activities", PGC_SUSET, STATS_COLLECTOR,
+		{"track_activities", PGC_SUSET, STATS_ACTIVITY,
 			gettext_noop("Collects information about executing commands."),
 			gettext_noop("Enables the collection of information on the currently "
 						 "executing command of each session, along with "
@@ -1529,7 +1529,7 @@ static struct config_bool ConfigureNamesBool[] =
 		NULL, NULL, NULL
 	},
 	{
-		{"track_counts", PGC_SUSET, STATS_COLLECTOR,
+		{"track_counts", PGC_SUSET, STATS_ACTIVITY,
 			gettext_noop("Collects statistics on database activity."),
 			NULL
 		},
@@ -1538,7 +1538,7 @@ static struct config_bool ConfigureNamesBool[] =
 		NULL, NULL, NULL
 	},
 	{
-		{"track_io_timing", PGC_SUSET, STATS_COLLECTOR,
+		{"track_io_timing", PGC_SUSET, STATS_ACTIVITY,
 			gettext_noop("Collects timing statistics for database I/O activity."),
 			NULL
 		},
@@ -1547,7 +1547,7 @@ static struct config_bool ConfigureNamesBool[] =
 		NULL, NULL, NULL
 	},
 	{
-		{"track_wal_io_timing", PGC_SUSET, STATS_COLLECTOR,
+		{"track_wal_io_timing", PGC_SUSET, STATS_ACTIVITY,
 			gettext_noop("Collects timing statistics for WAL I/O activity."),
 			NULL
 		},
@@ -4438,7 +4438,7 @@ static struct config_string ConfigureNamesString[] =
 	},
 
 	{
-		{"stats_temp_directory", PGC_SIGHUP, STATS_COLLECTOR,
+		{"stats_temp_directory", PGC_SIGHUP, STATS_ACTIVITY,
 			gettext_noop("Writes temporary statistics files to the specified directory."),
 			NULL,
 			GUC_SUPERUSER_ONLY
@@ -4785,7 +4785,7 @@ static struct config_enum ConfigureNamesEnum[] =
 	},
 
 	{
-		{"track_functions", PGC_SUSET, STATS_COLLECTOR,
+		{"track_functions", PGC_SUSET, STATS_ACTIVITY,
 			gettext_noop("Collects function-level statistics on database activity."),
 			NULL
 		},
@@ -4795,7 +4795,7 @@ static struct config_enum ConfigureNamesEnum[] =
 	},
 
 	{
-		{"stats_fetch_consistency", PGC_SUSET, STATS_COLLECTOR,
+		{"stats_fetch_consistency", PGC_SUSET, STATS_ACTIVITY,
 			gettext_noop("Stats consistency model XXXX"),
 			NULL
 		},
-- 
2.31.0.121.g9198c13e34

