Do not rely on pgstat.h to indirectly include storage/ headers.
authorAndres Freund
Sat, 3 Apr 2021 03:01:14 +0000 (20:01 -0700)
committerAndres Freund
Sat, 3 Apr 2021 03:02:47 +0000 (20:02 -0700)
commit1d9c5d0ce2dcac05850401cf266a9df10a68de49
tree1aeebf6fa9fcdfb740b67819923b78af2e523fb1
parenta333476b925134f6185037eaff3424c07a9f466f
Do not rely on pgstat.h to indirectly include storage/ headers.

An upcoming patch might remove the (now indirect) proc.h
include (which in turn includes other headers), and it's cleaner for
the modified files to include their dependencies directly anyway...

Discussion: https://postgr.es/m/20210402194458[email protected]
contrib/pg_stat_statements/pg_stat_statements.c
src/backend/postmaster/pgarch.c
src/backend/postmaster/pgstat.c
src/backend/replication/walreceiver.c
src/backend/storage/lmgr/lmgr.c
src/backend/utils/adt/misc.c