Rename SLRU elements in view pg_stat_slru
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 28 Feb 2024 08:39:52 +0000 (09:39 +0100)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 28 Feb 2024 08:39:52 +0000 (09:39 +0100)
commitbcdfa5f2e2f274caeed20b2f986012a9cb6a259c
treef4d4a89cb2042237ecbbc1941dd99e79206981c7
parent48920476b490544a3ee137da714424cd354bc2b6
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
13 files changed:
doc/src/sgml/monitoring.sgml
src/backend/access/transam/clog.c
src/backend/access/transam/commit_ts.c
src/backend/access/transam/multixact.c
src/backend/access/transam/subtrans.c
src/backend/commands/async.c
src/backend/storage/lmgr/predicate.c
src/include/utils/pgstat_internal.h
src/test/isolation/expected/stats.out
src/test/isolation/expected/stats_1.out
src/test/isolation/specs/stats.spec
src/test/regress/expected/stats.out
src/test/regress/sql/stats.sql