1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-19 13:42:17 +03:00

pgstat: stats collector references in comments.

Soon the stats collector will be no more, with statistics instead getting
stored in shared memory. There are a lot of references to the stats collector
in comments. This commit replaces most of these references with "cumulative
statistics system", with the remaining ones getting replaced as part of
subsequent commits.

This is done separately from the - quite large - shared memory statistics
patch to make review easier.

Author: Andres Freund <andres@anarazel.de>
Reviewed-By: Justin Pryzby <pryzby@telsasoft.com>
Reviewed-By: Thomas Munro <thomas.munro@gmail.com>
Reviewed-By: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://postgr.es/m/20220303021600.hs34ghqcw6zcokdh@alap3.anarazel.de
Discussion: https://postgr.es/m/20220308205351.2xcn6k4x5yivcxyd@alap3.anarazel.de
This commit is contained in:
Andres Freund
2022-04-06 13:56:06 -07:00
parent ab62a642d5
commit bdbd3d9064
31 changed files with 95 additions and 107 deletions

View File

@@ -23,8 +23,8 @@
/*
* Tell the statistics collector to reset a single replication slot
* counter, or all replication slots counters (when name is null).
* Reset counters for a single replication slot, or all replication slots
* (when name is null).
*
* Permission checking for this function is managed through the normal
* GRANT system.
@@ -51,7 +51,7 @@ pgstat_reset_replslot_counter(const char *name)
}
/*
* Tell the collector about replication slot statistics.
* Report replication slot statistics.
*/
void
pgstat_report_replslot(const PgStat_StatReplSlotEntry *repSlotStat)
@@ -77,7 +77,7 @@ pgstat_report_replslot(const PgStat_StatReplSlotEntry *repSlotStat)
}
/*
* Tell the collector about creating the replication slot.
* Report replication slot creation.
*/
void
pgstat_report_replslot_create(const char *slotname)
@@ -92,7 +92,7 @@ pgstat_report_replslot_create(const char *slotname)
}
/*
* Tell the collector about dropping the replication slot.
* Report replication slot drop.
*/
void
pgstat_report_replslot_drop(const char *slotname)