Split wait event related code from pgstat.[ch] into wait_event.[ch].

Andres Freund <andres@anarazel.de>

Commit: a333476b925134f6185037eaff3424c07a9f466f
Author: Andres Freund <andres@anarazel.de>
Date: 2021-04-03T03:02:26Z
Releases: 14.0
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

Discussion