pgstat: move transactional code into pgstat_xact.c.
Andres Freund <andres@anarazel.de>
pgstat: move transactional code into pgstat_xact.c. The transactional integration code is largely independent from the rest of pgstat.c. Subsequent commits will add more related code. Author: Andres Freund <andres@anarazel.de> Reviewed-By: Thomas Munro <thomas.munro@gmail.com> Discussion: https://postgr.es/m/20220404041516.cctrvpadhuriawlq@alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/pgstat.c | modified | +30 −154 |
| src/backend/utils/activity/Makefile | modified | +2 −1 |
| src/backend/utils/activity/pgstat_xact.c | added | +139 −0 |
| src/include/pgstat.h | modified | +11 −7 |
| src/include/utils/pgstat_internal.h | modified | +7 −1 |
Discussion
- shared-memory based stats collector 339 messages · 2018-06-29 → 2024-12-10