diff options
author | Andres Freund <andres@anarazel.de> | 2021-04-02 20:01:14 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2021-04-02 20:02:47 -0700 |
commit | 1d9c5d0ce2dcac05850401cf266a9df10a68de49 (patch) | |
tree | 1aeebf6fa9fcdfb740b67819923b78af2e523fb1 /src | |
parent | a333476b925134f6185037eaff3424c07a9f466f (diff) | |
download | postgresql-1d9c5d0ce2dcac05850401cf266a9df10a68de49.tar.gz postgresql-1d9c5d0ce2dcac05850401cf266a9df10a68de49.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/postmaster/pgarch.c | 2 | ||||
-rw-r--r-- | src/backend/postmaster/pgstat.c | 1 | ||||
-rw-r--r-- | src/backend/replication/walreceiver.c | 1 | ||||
-rw-r--r-- | src/backend/storage/lmgr/lmgr.c | 1 | ||||
-rw-r--r-- | src/backend/utils/adt/misc.c | 1 |
5 files changed, 6 insertions, 0 deletions
diff --git a/src/backend/postmaster/pgarch.c b/src/backend/postmaster/pgarch.c index 746c836d420..dfc7abbc975 100644 --- a/src/backend/postmaster/pgarch.c +++ b/src/backend/postmaster/pgarch.c @@ -44,7 +44,9 @@ #include "storage/ipc.h" #include "storage/latch.h" #include "storage/pmsignal.h" +#include "storage/proc.h" #include "storage/procsignal.h" +#include "storage/shmem.h" #include "utils/guc.h" #include "utils/ps_status.h" diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c index de239136f48..498d6ee1236 100644 --- a/src/backend/postmaster/pgstat.c +++ b/src/backend/postmaster/pgstat.c @@ -61,6 +61,7 @@ #include "storage/latch.h" #include "storage/lmgr.h" #include "storage/pg_shmem.h" +#include "storage/proc.h" #include "storage/procsignal.h" #include "storage/sinvaladt.h" #include "utils/ascii.h" diff --git a/src/backend/replication/walreceiver.c b/src/backend/replication/walreceiver.c index 2b6fa4019b8..9a0e3806fcf 100644 --- a/src/backend/replication/walreceiver.c +++ b/src/backend/replication/walreceiver.c @@ -69,6 +69,7 @@ #include "replication/walsender.h" #include "storage/ipc.h" #include "storage/pmsignal.h" +#include "storage/proc.h" #include "storage/procarray.h" #include "storage/procsignal.h" #include "utils/acl.h" diff --git a/src/backend/storage/lmgr/lmgr.c b/src/backend/storage/lmgr/lmgr.c index 5736d03083f..cdf2266d6d5 100644 --- a/src/backend/storage/lmgr/lmgr.c +++ b/src/backend/storage/lmgr/lmgr.c @@ -23,6 +23,7 @@ #include "miscadmin.h" #include "pgstat.h" #include "storage/lmgr.h" +#include "storage/proc.h" #include "storage/procarray.h" #include "storage/sinvaladt.h" #include "utils/inval.h" diff --git a/src/backend/utils/adt/misc.c b/src/backend/utils/adt/misc.c index 634f574d7eb..88faf4dfd72 100644 --- a/src/backend/utils/adt/misc.c +++ b/src/backend/utils/adt/misc.c @@ -36,6 +36,7 @@ #include "postmaster/syslogger.h" #include "rewrite/rewriteHandler.h" #include "storage/fd.h" +#include "storage/latch.h" #include "tcop/tcopprot.h" #include "utils/builtins.h" #include "utils/fmgroids.h" |