Skip to content

Commit e18512c

Browse files
committed
Remove unused #include's from backend .c files
as determined by IWYU These are mostly issues that are new since commit dbbca2c. Discussion: https://www.postgresql.org/message-id/flat/0df1d5b1-8ca8-4f84-93be-121081bde049%40eisentraut.org
1 parent 3aa2373 commit e18512c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+22
-108
lines changed

src/backend/access/brin/brin_bloom.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@
124124
#include "access/htup_details.h"
125125
#include "access/reloptions.h"
126126
#include "catalog/pg_am.h"
127-
#include "catalog/pg_amop.h"
128127
#include "catalog/pg_type.h"
129128
#include "common/hashfn.h"
130129
#include "utils/fmgrprotos.h"

src/backend/access/gin/ginvacuum.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "access/xloginsert.h"
2020
#include "commands/vacuum.h"
2121
#include "miscadmin.h"
22-
#include "postmaster/autovacuum.h"
2322
#include "storage/indexfsm.h"
2423
#include "storage/lmgr.h"
2524
#include "storage/predicate.h"

src/backend/access/heap/vacuumlazy.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535

3636
#include "access/genam.h"
3737
#include "access/heapam.h"
38-
#include "access/heapam_xlog.h"
3938
#include "access/htup_details.h"
4039
#include "access/multixact.h"
4140
#include "access/tidstore.h"
@@ -56,7 +55,6 @@
5655
#include "storage/freespace.h"
5756
#include "storage/lmgr.h"
5857
#include "utils/lsyscache.h"
59-
#include "utils/memutils.h"
6058
#include "utils/pg_rusage.h"
6159
#include "utils/timestamp.h"
6260

src/backend/access/nbtree/nbtree.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,15 @@
2020

2121
#include "access/nbtree.h"
2222
#include "access/relscan.h"
23-
#include "access/xloginsert.h"
2423
#include "commands/progress.h"
2524
#include "commands/vacuum.h"
26-
#include "miscadmin.h"
2725
#include "nodes/execnodes.h"
2826
#include "pgstat.h"
2927
#include "storage/bulk_write.h"
3028
#include "storage/condition_variable.h"
3129
#include "storage/indexfsm.h"
3230
#include "storage/ipc.h"
3331
#include "storage/lmgr.h"
34-
#include "storage/smgr.h"
3532
#include "utils/fmgrprotos.h"
3633
#include "utils/index_selfuncs.h"
3734
#include "utils/memutils.h"

src/backend/access/nbtree/nbtsort.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
#include "access/relscan.h"
4646
#include "access/table.h"
4747
#include "access/xact.h"
48-
#include "access/xloginsert.h"
4948
#include "catalog/index.h"
5049
#include "commands/progress.h"
5150
#include "executor/instrument.h"

src/backend/access/sequence/sequence.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#include "access/relation.h"
2424
#include "access/sequence.h"
25-
#include "storage/lmgr.h"
25+
#include "utils/rel.h"
2626

2727
static inline void validate_relation_kind(Relation r);
2828

src/backend/access/transam/slru.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
#include "pgstat.h"
7171
#include "storage/fd.h"
7272
#include "storage/shmem.h"
73-
#include "utils/guc_hooks.h"
73+
#include "utils/guc.h"
7474

7575
/*
7676
* Converts segment number to the filename of the segment.

src/backend/access/transam/xlog.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
#include "pg_trace.h"
7575
#include "pgstat.h"
7676
#include "port/atomics.h"
77-
#include "port/pg_iovec.h"
7877
#include "postmaster/bgwriter.h"
7978
#include "postmaster/startup.h"
8079
#include "postmaster/walsummarizer.h"
@@ -98,7 +97,6 @@
9897
#include "utils/guc_hooks.h"
9998
#include "utils/guc_tables.h"
10099
#include "utils/injection_point.h"
101-
#include "utils/memutils.h"
102100
#include "utils/ps_status.h"
103101
#include "utils/relmapper.h"
104102
#include "utils/snapmgr.h"

src/backend/access/transam/xlogwait.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,13 @@
2222
#include "access/xlog.h"
2323
#include "access/xlogrecovery.h"
2424
#include "access/xlogwait.h"
25-
#include "funcapi.h"
2625
#include "miscadmin.h"
2726
#include "storage/latch.h"
2827
#include "storage/proc.h"
2928
#include "storage/shmem.h"
3029
#include "utils/fmgrprotos.h"
3130
#include "utils/pg_lsn.h"
3231
#include "utils/snapmgr.h"
33-
#include "utils/wait_event_types.h"
3432

3533
static int waitlsn_cmp(const pairingheap_node *a, const pairingheap_node *b,
3634
void *arg);

src/backend/backup/basebackup.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include "nodes/pg_list.h"
3434
#include "pgstat.h"
3535
#include "pgtar.h"
36-
#include "port.h"
3736
#include "postmaster/syslogger.h"
3837
#include "postmaster/walsummarizer.h"
3938
#include "replication/slot.h"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy