diff options
author | Alvaro Herrera | 2024-02-28 08:39:52 +0000 |
---|---|---|
committer | Alvaro Herrera | 2024-02-28 08:39:52 +0000 |
commit | bcdfa5f2e2f274caeed20b2f986012a9cb6a259c (patch) | |
tree | f4d4a89cb2042237ecbbc1941dd99e79206981c7 /src/include | |
parent | 48920476b490544a3ee137da714424cd354bc2b6 (diff) |
Rename SLRU elements in view pg_stat_slru
The new names are intended to match those in an upcoming patch that adds
a few GUCs to configure the SLRU buffer sizes.
Backwards compatibility concern: this changes the accepted names for
function pg_stat_slru_rest(). Since this function recognizes "any other
string" as a request to reset the entry for "other", this means that
calling it with the old names would silently reset "other" instead of
doing nothing or throwing an error.
Reviewed-by: Andrey M. Borodin <x4mmm@yandex-team.ru>
Discussion: https://postgr.es/m/202402261616.dlriae7b6emv@alvherre.pgsql
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/utils/pgstat_internal.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/include/utils/pgstat_internal.h b/src/include/utils/pgstat_internal.h index 0cb8a58cba7..dbbca316025 100644 --- a/src/include/utils/pgstat_internal.h +++ b/src/include/utils/pgstat_internal.h @@ -269,13 +269,13 @@ typedef struct PgStat_KindInfo * definitions. */ static const char *const slru_names[] = { - "CommitTs", - "MultiXactMember", - "MultiXactOffset", - "Notify", - "Serial", - "Subtrans", - "Xact", + "commit_timestamp", + "multixact_member", + "multixact_offset", + "notify", + "serializable", + "subtransaction", + "transaction", "other" /* has to be last */ }; |