Do not rely on pgstat.h to indirectly include storage/ headers.
Andres Freund <andres@anarazel.de>
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.2vu324hkk2djq6ce@alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_stat_statements/pg_stat_statements.c | modified | +2 −0 |
| src/backend/postmaster/pgarch.c | modified | +2 −0 |
| src/backend/postmaster/pgstat.c | modified | +1 −0 |
| src/backend/replication/walreceiver.c | modified | +1 −0 |
| src/backend/storage/lmgr/lmgr.c | modified | +1 −0 |
| src/backend/utils/adt/misc.c | modified | +1 −0 |
Discussion
- Making wait events a bit more efficient 7 messages · 2021-04-02 → 2021-04-03