diff options
| author | Peter Eisentraut | 2024-10-27 07:18:25 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2024-10-27 07:26:50 +0000 |
| commit | e18512c000eeb0da3509c37ef4a3ce0530b396bd (patch) | |
| tree | 20cb8360ab991684da924cde8b7c40852146d1b3 /src/backend/postmaster | |
| parent | 3aa2373c114124f62e80016d8939331fcb4d5586 (diff) | |
Remove unused #include's from backend .c files
as determined by IWYU
These are mostly issues that are new since commit dbbca2cf299.
Discussion: https://www.postgresql.org/message-id/flat/0df1d5b1-8ca8-4f84-93be-121081bde049%40eisentraut.org
Diffstat (limited to 'src/backend/postmaster')
| -rw-r--r-- | src/backend/postmaster/auxprocess.c | 5 | ||||
| -rw-r--r-- | src/backend/postmaster/launch_backend.c | 26 | ||||
| -rw-r--r-- | src/backend/postmaster/postmaster.c | 5 | ||||
| -rw-r--r-- | src/backend/postmaster/walwriter.c | 2 |
4 files changed, 10 insertions, 28 deletions
diff --git a/src/backend/postmaster/auxprocess.c b/src/backend/postmaster/auxprocess.c index 74b8a00c94b..d19174bda39 100644 --- a/src/backend/postmaster/auxprocess.c +++ b/src/backend/postmaster/auxprocess.c @@ -18,11 +18,6 @@ #include "miscadmin.h" #include "pgstat.h" #include "postmaster/auxprocess.h" -#include "postmaster/bgwriter.h" -#include "postmaster/startup.h" -#include "postmaster/walsummarizer.h" -#include "postmaster/walwriter.h" -#include "replication/walreceiver.h" #include "storage/condition_variable.h" #include "storage/ipc.h" #include "storage/proc.h" diff --git a/src/backend/postmaster/launch_backend.c b/src/backend/postmaster/launch_backend.c index 0ae23fdf55e..25020cedad0 100644 --- a/src/backend/postmaster/launch_backend.c +++ b/src/backend/postmaster/launch_backend.c @@ -33,15 +33,9 @@ #include <unistd.h> -#include "access/xlog.h" -#include "common/file_utils.h" #include "libpq/libpq-be.h" -#include "libpq/pqsignal.h" #include "miscadmin.h" -#include "nodes/queryjumble.h" -#include "port.h" #include "postmaster/autovacuum.h" -#include "postmaster/auxprocess.h" #include "postmaster/bgworker_internals.h" #include "postmaster/bgwriter.h" #include "postmaster/fork_process.h" @@ -54,20 +48,9 @@ #include "replication/slotsync.h" #include "replication/walreceiver.h" #include "storage/dsm.h" -#include "storage/fd.h" -#include "storage/ipc.h" #include "storage/pg_shmem.h" -#include "storage/pmsignal.h" -#include "storage/proc.h" -#include "storage/procsignal.h" #include "tcop/backend_startup.h" -#include "tcop/tcopprot.h" -#include "utils/builtins.h" -#include "utils/datetime.h" -#include "utils/guc.h" -#include "utils/injection_point.h" #include "utils/memutils.h" -#include "utils/timestamp.h" #ifdef EXEC_BACKEND #include "nodes/queryjumble.h" @@ -78,6 +61,15 @@ #ifdef EXEC_BACKEND +#include "common/file_utils.h" +#include "storage/fd.h" +#include "storage/lwlock.h" +#include "storage/pmsignal.h" +#include "storage/proc.h" +#include "storage/procsignal.h" +#include "tcop/tcopprot.h" +#include "utils/injection_point.h" + /* Type for a socket that can be inherited to a client process */ #ifdef WIN32 typedef struct diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 85fd24e8287..407f55996ba 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -92,8 +92,6 @@ #include "access/xlog.h" #include "access/xlogrecovery.h" #include "common/file_perm.h" -#include "common/file_utils.h" -#include "common/ip.h" #include "common/pg_prng.h" #include "lib/ilist.h" #include "libpq/libpq.h" @@ -102,7 +100,6 @@ #include "pgstat.h" #include "port/pg_bswap.h" #include "postmaster/autovacuum.h" -#include "postmaster/auxprocess.h" #include "postmaster/bgworker_internals.h" #include "postmaster/pgarch.h" #include "postmaster/postmaster.h" @@ -114,7 +111,6 @@ #include "storage/fd.h" #include "storage/ipc.h" #include "storage/pmsignal.h" -#include "storage/proc.h" #include "tcop/backend_startup.h" #include "tcop/tcopprot.h" #include "utils/datetime.h" @@ -124,6 +120,7 @@ #include "utils/varlena.h" #ifdef EXEC_BACKEND +#include "common/file_utils.h" #include "storage/pg_shmem.h" #endif diff --git a/src/backend/postmaster/walwriter.c b/src/backend/postmaster/walwriter.c index 6e7918a78d4..91013f6e936 100644 --- a/src/backend/postmaster/walwriter.c +++ b/src/backend/postmaster/walwriter.c @@ -54,12 +54,10 @@ #include "storage/bufmgr.h" #include "storage/condition_variable.h" #include "storage/fd.h" -#include "storage/ipc.h" #include "storage/lwlock.h" #include "storage/proc.h" #include "storage/procsignal.h" #include "storage/smgr.h" -#include "utils/guc.h" #include "utils/hsearch.h" #include "utils/memutils.h" #include "utils/resowner.h" |
