pgsql: pgstat: add pgstat_copy_relation_stats(). - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: pgstat: add pgstat_copy_relation_stats().
Date
Msg-id E1ncDJ6-000dTv-Sr@gemulon.postgresql.org
Whole thread Raw
Responses Re: pgsql: pgstat: add pgstat_copy_relation_stats().  (Michael Paquier <michael@paquier.xyz>)
List pgsql-committers
pgstat: add pgstat_copy_relation_stats().

Until now index_concurrently_swap() directly modified pgstat internal
datastructures. That will break with the introduction of shared memory
statistics and seems off architecturally.

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

Author: Andres Freund <andres@anarazel.de>
Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Reviewed-By: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://postgr.es/m/20220303021600.hs34ghqcw6zcokdh@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8ea7963fc741b6f403a544d56ad0ecf78e5237b1

Modified Files
--------------
src/backend/catalog/index.c                  | 26 ++--------------------
src/backend/utils/activity/pgstat_relation.c | 32 ++++++++++++++++++++++++++++
src/include/pgstat.h                         |  2 ++
3 files changed, 36 insertions(+), 24 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Suppress "variable 'pagesaving' set but not used" warning.
Next
From: Tom Lane
Date:
Subject: pgsql: Use ISB as a spin-delay instruction on ARM64.