Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita22d76d

Browse files
committed
Allow include files to compile own their own.
Strip unused include files out unused include files, and add neededincludes to C files.The next step is to remove unused include files in C files.
1 parent70e2e3d commita22d76d

File tree

124 files changed

+259
-190
lines changed

Some content is hidden

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

124 files changed

+259
-190
lines changed

‎src/backend/access/heap/heapam.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.215 2006/07/03 22:45:37 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.216 2006/07/13 16:49:12 momjian Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -41,8 +41,10 @@
4141
#include"access/heapam.h"
4242
#include"access/hio.h"
4343
#include"access/multixact.h"
44+
#include"access/transam.h"
4445
#include"access/tuptoaster.h"
4546
#include"access/valid.h"
47+
#include"access/xact.h"
4648
#include"access/xlogutils.h"
4749
#include"catalog/catalog.h"
4850
#include"catalog/namespace.h"

‎src/backend/access/nbtree/nbtinsert.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.140 2006/07/11 21:05:57 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.141 2006/07/13 16:49:12 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -17,6 +17,7 @@
1717

1818
#include"access/heapam.h"
1919
#include"access/nbtree.h"
20+
#include"access/transam.h"
2021
#include"miscadmin.h"
2122
#include"utils/inval.h"
2223

‎src/backend/access/nbtree/nbtpage.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtpage.c,v 1.97 2006/05/08 00:00:10 tgl Exp $
12+
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtpage.c,v 1.98 2006/07/13 16:49:12 momjian Exp $
1313
*
1414
*NOTES
1515
* Postgres btree pages look like ordinary relation pages.The opaque
@@ -23,6 +23,7 @@
2323
#include"postgres.h"
2424

2525
#include"access/nbtree.h"
26+
#include"access/transam.h"
2627
#include"miscadmin.h"
2728
#include"storage/freespace.h"
2829
#include"storage/lmgr.h"

‎src/backend/access/nbtree/nbtutils.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtutils.c,v 1.76 2006/07/03 22:45:37 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtutils.c,v 1.77 2006/07/13 16:49:12 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -22,6 +22,8 @@
2222
#include"access/reloptions.h"
2323
#include"executor/execdebug.h"
2424
#include"miscadmin.h"
25+
#include"storage/lwlock.h"
26+
#include"storage/shmem.h"
2527

2628

2729
staticvoid_bt_mark_scankey_required(ScanKeyskey);

‎src/backend/access/nbtree/nbtxlog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtxlog.c,v 1.33 2006/05/08 00:00:10 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtxlog.c,v 1.34 2006/07/13 16:49:12 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
1515
#include"postgres.h"
1616

1717
#include"access/nbtree.h"
18+
#include"access/transam.h"
1819
#include"access/xlogutils.h"
1920

20-
2121
/*
2222
* We must keep track of expected insertions due to page splits, and apply
2323
* them manually if they are not seen in the WAL log during replay. This

‎src/backend/access/transam/clog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@
2424
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
2525
* Portions Copyright (c) 1994, Regents of the University of California
2626
*
27-
* $PostgreSQL: pgsql/src/backend/access/transam/clog.c,v 1.38 2006/03/24 04:32:12tgl Exp $
27+
* $PostgreSQL: pgsql/src/backend/access/transam/clog.c,v 1.39 2006/07/13 16:49:12momjian Exp $
2828
*
2929
*-------------------------------------------------------------------------
3030
*/
3131
#include"postgres.h"
3232

3333
#include"access/clog.h"
3434
#include"access/slru.h"
35+
#include"access/transam.h"
3536
#include"postmaster/bgwriter.h"
3637

37-
3838
/*
3939
* Defines for CLOG page sizes. A page is the same BLCKSZ as is used
4040
* everywhere else in Postgres.

‎src/backend/access/transam/multixact.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,15 @@
4242
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
4343
* Portions Copyright (c) 1994, Regents of the University of California
4444
*
45-
* $PostgreSQL: pgsql/src/backend/access/transam/multixact.c,v 1.18 2006/07/11 17:04:13 momjian Exp $
45+
* $PostgreSQL: pgsql/src/backend/access/transam/multixact.c,v 1.19 2006/07/13 16:49:13 momjian Exp $
4646
*
4747
*-------------------------------------------------------------------------
4848
*/
4949
#include"postgres.h"
5050

5151
#include"access/multixact.h"
5252
#include"access/slru.h"
53+
#include"access/transam.h"
5354
#include"access/xact.h"
5455
#include"miscadmin.h"
5556
#include"storage/backendid.h"

‎src/backend/access/transam/slru.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
4242
* Portions Copyright (c) 1994, Regents of the University of California
4343
*
44-
* $PostgreSQL: pgsql/src/backend/access/transam/slru.c,v 1.36 2006/03/05 15:58:21 momjian Exp $
44+
* $PostgreSQL: pgsql/src/backend/access/transam/slru.c,v 1.37 2006/07/13 16:49:13 momjian Exp $
4545
*
4646
*-------------------------------------------------------------------------
4747
*/
@@ -51,7 +51,9 @@
5151
#include<sys/stat.h>
5252
#include<unistd.h>
5353

54+
#include"access/htup.h"
5455
#include"access/slru.h"
56+
#include"access/transam.h"
5557
#include"access/xlog.h"
5658
#include"storage/fd.h"
5759
#include"storage/shmem.h"

‎src/backend/access/transam/subtrans.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@
2222
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
2323
* Portions Copyright (c) 1994, Regents of the University of California
2424
*
25-
* $PostgreSQL: pgsql/src/backend/access/transam/subtrans.c,v 1.16 2006/03/05 15:58:22 momjian Exp $
25+
* $PostgreSQL: pgsql/src/backend/access/transam/subtrans.c,v 1.17 2006/07/13 16:49:13 momjian Exp $
2626
*
2727
*-------------------------------------------------------------------------
2828
*/
2929
#include"postgres.h"
3030

3131
#include"access/slru.h"
3232
#include"access/subtrans.h"
33+
#include"access/transam.h"
3334
#include"utils/tqual.h"
3435

3536

‎src/backend/access/transam/twophase.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
*$PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.19 2006/03/05 15:58:22 momjian Exp $
10+
*$PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.20 2006/07/13 16:49:13 momjian Exp $
1111
*
1212
* NOTES
1313
*Each global transaction is associated with a global transaction
@@ -44,6 +44,7 @@
4444

4545
#include"access/heapam.h"
4646
#include"access/subtrans.h"
47+
#include"access/transam.h"
4748
#include"access/twophase.h"
4849
#include"access/twophase_rmgr.h"
4950
#include"access/xact.h"

‎src/backend/access/transam/xact.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/access/transam/xact.c,v 1.221 2006/06/20 22:51:59 tgl Exp $
13+
* $PostgreSQL: pgsql/src/backend/access/transam/xact.c,v 1.222 2006/07/13 16:49:13 momjian Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -22,6 +22,7 @@
2222

2323
#include"access/multixact.h"
2424
#include"access/subtrans.h"
25+
#include"access/transam.h"
2526
#include"access/twophase.h"
2627
#include"access/xact.h"
2728
#include"catalog/heap.h"

‎src/backend/access/transam/xlog.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.242 2006/06/27 18:59:17 tgl Exp $
10+
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.243 2006/07/13 16:49:13 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -25,6 +25,7 @@
2525
#include"access/clog.h"
2626
#include"access/multixact.h"
2727
#include"access/subtrans.h"
28+
#include"access/transam.h"
2829
#include"access/twophase.h"
2930
#include"access/xact.h"
3031
#include"access/xlog.h"

‎src/backend/bootstrap/bootstrap.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.218 2006/06/27 22:16:43 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.219 2006/07/1316:49:13 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -24,6 +24,7 @@
2424

2525
#include"access/genam.h"
2626
#include"access/heapam.h"
27+
#include"access/xact.h"
2728
#include"access/xlog.h"
2829
#include"bootstrap/bootstrap.h"
2930
#include"catalog/index.h"
@@ -33,6 +34,7 @@
3334
#include"miscadmin.h"
3435
#include"nodes/makefuncs.h"
3536
#include"postmaster/bgwriter.h"
37+
#include"pgtime.h"
3638
#include"storage/freespace.h"
3739
#include"storage/ipc.h"
3840
#include"storage/pg_shmem.h"

‎src/backend/catalog/aclchk.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/catalog/aclchk.c,v 1.128 2006/05/03 22:45:26 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/catalog/aclchk.c,v 1.129 2006/07/13 16:49:13 momjian Exp $
1212
*
1313
* NOTES
1414
* See acl.h.
@@ -19,6 +19,7 @@
1919

2020
#include"access/genam.h"
2121
#include"access/heapam.h"
22+
#include"access/xact.h"
2223
#include"catalog/catalog.h"
2324
#include"catalog/dependency.h"
2425
#include"catalog/indexing.h"

‎src/backend/catalog/dependency.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/catalog/dependency.c,v 1.56 2006/06/27 18:35:05 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/catalog/dependency.c,v 1.57 2006/07/13 16:49:13 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
1515
#include"postgres.h"
1616

1717
#include"access/genam.h"
1818
#include"access/heapam.h"
19+
#include"access/xact.h"
1920
#include"catalog/dependency.h"
2021
#include"catalog/heap.h"
2122
#include"catalog/index.h"

‎src/backend/catalog/heap.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/catalog/heap.c,v 1.307 2006/07/11 17:04:13 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/catalog/heap.c,v 1.308 2006/07/13 16:49:13 momjian Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -31,6 +31,8 @@
3131

3232
#include"access/genam.h"
3333
#include"access/heapam.h"
34+
#include"access/transam.h"
35+
#include"access/xact.h"
3436
#include"catalog/catalog.h"
3537
#include"catalog/dependency.h"
3638
#include"catalog/heap.h"

‎src/backend/catalog/index.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/catalog/index.c,v 1.268 2006/07/03 22:45:37 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/catalog/index.c,v 1.269 2006/07/13 16:49:13 momjian Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -25,6 +25,8 @@
2525

2626
#include"access/genam.h"
2727
#include"access/heapam.h"
28+
#include"access/transam.h"
29+
#include"access/xact.h"
2830
#include"bootstrap/bootstrap.h"
2931
#include"catalog/catalog.h"
3032
#include"catalog/dependency.h"

‎src/backend/catalog/pg_aggregate.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/catalog/pg_aggregate.c,v 1.79 2006/03/14 22:48:18 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/catalog/pg_aggregate.c,v 1.80 2006/07/13 16:49:13 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -22,6 +22,7 @@
2222
#include"catalog/pg_language.h"
2323
#include"catalog/pg_operator.h"
2424
#include"catalog/pg_proc.h"
25+
#include"catalog/pg_type.h"
2526
#include"miscadmin.h"
2627
#include"optimizer/cost.h"
2728
#include"parser/parse_coerce.h"

‎src/backend/catalog/pg_operator.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/catalog/pg_operator.c,v 1.96 2006/03/14 22:48:18 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/catalog/pg_operator.c,v 1.97 2006/07/13 16:49:13 momjian Exp $
1212
*
1313
* NOTES
1414
* these routines moved here from commands/define.c and somewhat cleaned up.
@@ -18,6 +18,7 @@
1818
#include"postgres.h"
1919

2020
#include"access/heapam.h"
21+
#include"access/xact.h"
2122
#include"catalog/dependency.h"
2223
#include"catalog/indexing.h"
2324
#include"catalog/namespace.h"

‎src/backend/catalog/pg_proc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/catalog/pg_proc.c,v 1.139 2006/07/11 17:26:58 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/catalog/pg_proc.c,v 1.140 2006/07/13 16:49:13 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
1515
#include"postgres.h"
1616

1717
#include"access/heapam.h"
18+
#include"access/xact.h"
1819
#include"catalog/dependency.h"
1920
#include"catalog/indexing.h"
2021
#include"catalog/pg_language.h"

‎src/backend/catalog/pg_shdepend.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/catalog/pg_shdepend.c,v 1.10 2006/07/11 17:26:58 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/catalog/pg_shdepend.c,v 1.11 2006/07/13 16:49:13 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
1515
#include"postgres.h"
1616

1717
#include"access/genam.h"
1818
#include"access/heapam.h"
19+
#include"access/xact.h"
1920
#include"catalog/dependency.h"
2021
#include"catalog/indexing.h"
2122
#include"catalog/pg_authid.h"

‎src/backend/commands/analyze.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/commands/analyze.c,v 1.94 2006/07/10 16:20:50 alvherre Exp $
11+
* $PostgreSQL: pgsql/src/backend/commands/analyze.c,v 1.95 2006/07/13 16:49:13 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -17,6 +17,7 @@
1717
#include<math.h>
1818

1919
#include"access/heapam.h"
20+
#include"access/transam.h"
2021
#include"access/tuptoaster.h"
2122
#include"catalog/catalog.h"
2223
#include"catalog/index.h"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp