Split wait event related code from pgstat.[ch] into wait_event.[ch].
authorAndres Freund <andres@anarazel.de>
Sat, 3 Apr 2021 02:45:24 +0000 (19:45 -0700)
committerAndres Freund <andres@anarazel.de>
Sat, 3 Apr 2021 03:02:26 +0000 (20:02 -0700)
commita333476b925134f6185037eaff3424c07a9f466f
tree6e5aa805226348fc9bb5a3fb99db25cc8a4dab40
parent1267d9862fc6a4f8cdc0ca38d1988b61f39da585
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
src/backend/postmaster/pgstat.c
src/backend/utils/Makefile
src/backend/utils/activity/Makefile [new file with mode: 0644]
src/backend/utils/activity/wait_event.c [new file with mode: 0644]
src/include/pgstat.h
src/include/utils/wait_event.h [new file with mode: 0644]