pgsql: pgstat: split reporting/fetching of bgwriter and checkpointer st

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgsql: pgstat: split reporting/fetching of bgwriter and checkpointer st
Дата
Msg-id E1mBSxQ-00010W-ND@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
pgstat: split reporting/fetching of bgwriter and checkpointer stats.

These have been unrelated since bgwriter and checkpointer were split into two
processes in 806a2aee379. As there several pending patches (shared memory
stats, extending the set of tracked IO / buffer statistics) that are made a
bit more awkward by the grouping, split them. Done separately to make
reviewing easier.

This does *not* change the contents of pg_stat_bgwriter or move fields out of
bgwriter/checkpointer stats that arguably do not belong in either. However
pgstat_fetch_global() was renamed and split into
pgstat_fetch_stat_checkpointer() and pgstat_fetch_stat_bgwriter().

Author: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/20210405092914.mmxqe7j56lsjfsej@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1bc8e7b0991c1eae5fa6dc2d29bb2280efb52740

Modified Files
--------------
src/backend/access/transam/xlog.c     |   4 +-
src/backend/postmaster/checkpointer.c |  26 ++++---
src/backend/postmaster/pgstat.c       | 124 ++++++++++++++++++++++++++++------
src/backend/storage/buffer/bufmgr.c   |   8 +--
src/backend/utils/adt/pgstatfuncs.c   |  27 ++++----
src/include/pgstat.h                  |  63 +++++++++++++----
6 files changed, 185 insertions(+), 67 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: pgsql: Make vacuum_index_cleanup reloption RELOPT_TYPE_ENUM.
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: pgbench: When using pipelining only do PQconsumeInput() when nec