Split wait event related code from pgstat.[ch] into wait_event.[ch].
Andres Freund <andres@anarazel.de>
Split wait event related code from pgstat.[ch] into wait_event.[ch]. The wait event related code is independent from the rest of the pgstat.[ch] code, of nontrivial size and changes on a regular basis. Put it into its own set of files. As there doesn't seem to be a good pre-existing directory for code like this, add src/backend/utils/activity. Reviewed-By: Robert Haas <robertmhaas@gmail.com> Discussion: https://postgr.es/m/20210316195440.twxmlov24rr2nxrg@alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/pgstat.c | modified | +0 −673 |
| src/backend/utils/activity/Makefile | added | +19 −0 |
| src/backend/utils/activity/wait_event.c | added | +690 −0 |
| src/backend/utils/Makefile | modified | +14 −1 |
| src/include/pgstat.h | modified | +1 −273 |
| src/include/utils/wait_event.h | added | +301 −0 |
Discussion
- shared-memory based stats collector 339 messages · 2018-06-29 → 2024-12-10