pgstat: add pgstat_copy_relation_stats().
Andres Freund <andres@anarazel.de>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/index.c | modified | +2 −24 |
| src/backend/utils/activity/pgstat_relation.c | modified | +32 −0 |
| src/include/pgstat.h | modified | +2 −0 |
Discussion
- shared-memory based stats collector 339 messages · 2018-06-29 → 2024-12-10