diff options
author | Andres Freund <andres@anarazel.de> | 2022-04-06 13:56:06 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2022-04-06 13:56:06 -0700 |
commit | bdbd3d9064f9dbd064253e05f156ec77d4a90d05 (patch) | |
tree | 400e62f8c81bebc319c994c52d6a19df7a317260 /src/backend/tcop/postgres.c | |
parent | ab62a642d52c95c0c62e927ba1bf3cfa279b744b (diff) | |
download | postgresql-bdbd3d9064f9dbd064253e05f156ec77d4a90d05.tar.gz postgresql-bdbd3d9064f9dbd064253e05f156ec77d4a90d05.zip |
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
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index ba2fcfeb4af..260b650f15f 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -2937,7 +2937,7 @@ die(SIGNAL_ARGS) ProcDiePending = true; } - /* for the statistics collector */ + /* for the cumulative stats system */ pgStatSessionEndCause = DISCONNECT_KILLED; /* If we're still here, waken anything waiting on the process latch */ @@ -4368,8 +4368,8 @@ PostgresMain(const char *dbname, const char *username) * * Note: this includes fflush()'ing the last of the prior output. * - * This is also a good time to send collected statistics to the - * collector, and to update the PS stats display. We avoid doing + * This is also a good time to flush out collected statistics to the + * cumulative stats system, and to update the PS stats display. We avoid doing * those every time through the message loop because it'd slow down * processing of batched messages, and because we don't want to report * uncommitted updates (that confuses autovacuum). The notification @@ -4710,7 +4710,7 @@ PostgresMain(const char *dbname, const char *username) */ case EOF: - /* for the statistics collector */ + /* for the cumulative statistics system */ pgStatSessionEndCause = DISCONNECT_CLIENT_EOF; /* FALLTHROUGH */ |