aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2022-04-06 14:08:57 -0700
committerAndres Freund <andres@anarazel.de>2022-04-06 14:08:57 -0700
commitcc96373cf39bbfb386a40a47b7f0ea8f051f1838 (patch)
treeb095cde2b33b82c2e46c3a6d479152005d731515 /src/backend/utils
parentdbafe127bb215f512164669b49f99fcb7ed9d266 (diff)
downloadpostgresql-cc96373cf39bbfb386a40a47b7f0ea8f051f1838.tar.gz
postgresql-cc96373cf39bbfb386a40a47b7f0ea8f051f1838.zip
pgstat: rename some pgstat_send_* functions to pgstat_report_*.
Only the pgstat_send_* functions that are called from outside pgstat*.c are renamed (the rest will go away). This is done separately from the - quite large - shared memory statistics patch to make review easier. Author: Andres Freund <andres@anarazel.de> Reviewed-By: Kyotaro Horiguchi <horikyota.ntt@gmail.com> Discussion: https://postgr.es/m/20220404041516.cctrvpadhuriawlq@alap3.anarazel.de
Diffstat (limited to 'src/backend/utils')
-rw-r--r--src/backend/utils/activity/pgstat_archiver.c2
-rw-r--r--src/backend/utils/activity/pgstat_bgwriter.c2
-rw-r--r--src/backend/utils/activity/pgstat_checkpointer.c2
-rw-r--r--src/backend/utils/activity/pgstat_wal.c8
4 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/utils/activity/pgstat_archiver.c b/src/backend/utils/activity/pgstat_archiver.c
index c829b91b60c..09bc12070da 100644
--- a/src/backend/utils/activity/pgstat_archiver.c
+++ b/src/backend/utils/activity/pgstat_archiver.c
@@ -25,7 +25,7 @@
* Report archiver statistics
*/
void
-pgstat_send_archiver(const char *xlog, bool failed)
+pgstat_report_archiver(const char *xlog, bool failed)
{
PgStat_MsgArchiver msg;
diff --git a/src/backend/utils/activity/pgstat_bgwriter.c b/src/backend/utils/activity/pgstat_bgwriter.c
index 7e7eae80372..dfea88eca10 100644
--- a/src/backend/utils/activity/pgstat_bgwriter.c
+++ b/src/backend/utils/activity/pgstat_bgwriter.c
@@ -32,7 +32,7 @@ PgStat_MsgBgWriter PendingBgWriterStats;
* Report bgwriter statistics
*/
void
-pgstat_send_bgwriter(void)
+pgstat_report_bgwriter(void)
{
/* We assume this initializes to zeroes */
static const PgStat_MsgBgWriter all_zeroes;
diff --git a/src/backend/utils/activity/pgstat_checkpointer.c b/src/backend/utils/activity/pgstat_checkpointer.c
index dbb9d861a4b..3f4e2054f55 100644
--- a/src/backend/utils/activity/pgstat_checkpointer.c
+++ b/src/backend/utils/activity/pgstat_checkpointer.c
@@ -32,7 +32,7 @@ PgStat_MsgCheckpointer PendingCheckpointerStats;
* Report checkpointer statistics
*/
void
-pgstat_send_checkpointer(void)
+pgstat_report_checkpointer(void)
{
/* We assume this initializes to zeroes */
static const PgStat_MsgCheckpointer all_zeroes;
diff --git a/src/backend/utils/activity/pgstat_wal.c b/src/backend/utils/activity/pgstat_wal.c
index ad999887630..8680809deef 100644
--- a/src/backend/utils/activity/pgstat_wal.c
+++ b/src/backend/utils/activity/pgstat_wal.c
@@ -31,8 +31,8 @@ PgStat_MsgWal WalStats;
/*
* WAL usage counters saved from pgWALUsage at the previous call to
- * pgstat_send_wal(). This is used to calculate how much WAL usage
- * happens between pgstat_send_wal() calls, by subtracting
+ * pgstat_report_wal(). This is used to calculate how much WAL usage
+ * happens between pgstat_report_wal() calls, by subtracting
* the previous counters from the current ones.
*/
static WalUsage prevWalUsage;
@@ -45,7 +45,7 @@ static WalUsage prevWalUsage;
* passed since last one was sent to reach PGSTAT_STAT_INTERVAL.
*/
void
-pgstat_send_wal(bool force)
+pgstat_report_wal(bool force)
{
static TimestampTz sendTime = 0;
@@ -133,7 +133,7 @@ void
pgstat_wal_initialize(void)
{
/*
- * Initialize prevWalUsage with pgWalUsage so that pgstat_send_wal() can
+ * Initialize prevWalUsage with pgWalUsage so that pgstat_report_wal() can
* calculate how much pgWalUsage counters are increased by subtracting
* prevWalUsage from pgWalUsage.
*/