8000 Remove unused #include's from contrib, pl, test .c files · postgrespro/postgres@9be4e5d · GitHub
[go: up one dir, main page]

Skip to content

Commit 9be4e5d

Browse files
committed
Remove unused #include's from contrib, pl, test .c files
as determined by IWYU Similar to commit dbbca2c, but for contrib, pl, and src/test/. Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org> Discussion: https://www.postgresql.org/message-id/flat/0df1d5b1-8ca8-4f84-93be-121081bde049%40eisentraut.org
1 parent 1bf1140 commit 9be4e5d

File tree

93 files changed

+40
-218
lines changed

Some content is hidden

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

93 files changed

+40
-218
lines changed

contrib/amcheck/verify_heapam.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,22 @@
1212

1313
#include "access/detoast.h"
1414
#include "access/genam.h"
15-
#include "access/heapam.h"
1615
#include "access/heaptoast.h"
1716
#include "access/multixact.h"
17+
#include "access/relation.h"
18+
#include "access/table.h"
1819
#include "access/toast_internals.h"
1920
#include "access/visibilitymap.h"
21+
#include "access/xact.h"
2022
#include "catalog/pg_am.h"
23+
#include "catalog/pg_class.h"
2124
#include "funcapi.h"
2225
#include "miscadmin.h"
2326
#include "storage/bufmgr.h"
2427
#include "storage/procarray.h"
2528
#include "utils/builtins.h"
2629
#include "utils/fmgroids.h"
30+
#include "utils/rel.h"
2731

2832
PG_FUNCTION_INFO_V1(verify_heapam);
2933

contrib/amch 10000 eck/verify_nbtree.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,9 @@
3333
#include "catalog/index.h"
3434
#include "catalog/pg_am.h"
3535
#include "catalog/pg_opfamily_d.h"
36-
#include "commands/tablecmds.h"
3736
#include "common/pg_prng.h"
3837
#include "lib/bloomfilter.h"
3938
#include "miscadmin.h"
40-
#include "storage/lmgr.h"
4139
#include "storage/smgr.h"
4240
#include "utils/guc.h"
4341
#include "utils/memutils.h"

contrib/auth_delay/auth_delay.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
#include <limits.h>
1515

1616
#include "libpq/auth.h"
17-
#include "port.h"
1817
#include "utils/guc.h"
19-
#include "utils/timestamp.h"
2018

2119
PG_MODULE_MAGIC;
2220

contrib/auto_explain/auto_explain.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#include "commands/explain.h"
1919
#include "common/pg_prng.h"
2020
#include "executor/instrument.h"
21-
#include "jit/jit.h"
22-
#include "nodes/params.h"
2321
#include "utils/guc.h"
2422

2523
PG_MODULE_MAGIC;

contrib/basic_archive/basic_archive.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
#include "storage/copydir.h"
3737
#include "storage/fd.h"
3838
#include "utils/guc.h"
39-
#include "utils/memutils.h"
4039

4140
PG_MODULE_MAGIC;
4241

contrib/bloom/blcost.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "postgres.h"
1414

1515
#include "bloom.h"
16-
#include "fmgr.h"
1716
#include "utils/selfuncs.h"
1817

1918
/*

contrib/bloom/blinsert.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@
1616
#include "access/generic_xlog.h"
1717
#include "access/tableam.h"
1818
#include "bloom.h"
19-
#include "catalog/index.h"
2019
#include "miscadmin.h"
20+
#include "nodes/execnodes.h"
2121
#include "storage/bufmgr.h"
22-
#include "storage/indexfsm.h"
23-
#include "storage/smgr.h"
2422
#include "utils/memutils.h"
2523
#include "utils/rel.h"
2624

contrib/bloom/blscan.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515
#include "access/relscan.h"
1616
#include "bloom.h"
1717
#include "miscadmin.h"
18-
#include "pgstat.h"
1918
#include "storage/bufmgr.h"
20-
#include "storage/lmgr.h"
21-
#include "utils/memutils.h"
22-
#include "utils/rel.h"
2319

2420
/*
2521
* Begin scan of bloom index.

contrib/bloom/blutils.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,11 @@
1717
#include "access/generic_xlog.h"
1818
#include "access/reloptions.h"
1919
#include "bloom.h"
20-
#include "catalog/index.h"
2120
#include "commands/vacuum.h"
22-
#include "miscadmin.h"
2321
#include "storage/bufmgr.h"
24-
#include "storage/freespace.h"
2522
#include "storage/indexfsm.h"
26-
#include "storage/lmgr.h"
2723
#include "utils/memutils.h"
24+
#include "varatt.h"
2825

2926
/* Signature dealing macros - note i is assumed to be of type int */
3027
#define GETWORD(x,i) ( *( (BloomSignatureWord *)(x) + ( (i) / SIGNWORDBITS ) ) )

contrib/bloom/blvacuum.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,9 @@
1414

1515
#include "access/genam.h"
1616
#include "bloom.h"
17-
#include "catalog/storage.h"
1817
#include "commands/vacuum.h"
19-
#include "miscadmin.h"
20-
#include "postmaster/autovacuum.h"
2118
#include "storage/bufmgr.h"
2219
#include "storage/indexfsm.h&q 4BA3 uot;
23-
#include "storage/lmgr.h"
2420

2521

2622
/*

0 commit comments

Comments
 (0)
0