Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4b2c285

Browse files
committed
Clean up #include in /include directory. Add scripts for checking includes.
1 parent 0df7614 commit 4b2c285

File tree

286 files changed

+421
-737
lines changed

Some content is hidden

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

286 files changed

+421
-737
lines changed

doc/src/sgml/release.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Portability fixes for linux_ppc, Irix, linux_alpha, OpenBSD, alpha
3939
Remove QUERY_LIMIT, use SELECT...LIMIT
4040
Fix for EXPLAIN on inheritance(Tom)
4141
Patch to allow vacuum on multi-segment tables(Hiroshi)
42-
R=Tree optimizer selectivity fix(Tom)
42+
R-Tree optimizer selectivity fix(Tom)
4343
ACL file descriptor leak fix(Atsushi Ogawa)
4444
New expresssion subtree code(Tom)
4545
Avoid disk writes for read-only transactions(Vadim)

src/backend/access/gist/gist.c

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <postgres.h>
1515

1616
#include <fmgr.h>
17+
#include <catalog/pg_index.h>
1718
#include <access/genam.h>
1819
#include <access/gist.h>
1920
#include <access/gistscan.h>

src/backend/access/hash/hashscan.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashscan.c,v 1.18 1999/07/14 01:19:36 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashscan.c,v 1.19 1999/07/15 15:18:33 momjian Exp $
1111
*
1212
* NOTES
1313
* Because we can be doing an index scan on a relation while we
@@ -30,7 +30,6 @@
3030
#include <postgres.h>
3131

3232
#include <access/hash.h>
33-
#include <utils/mcxt.h>
3433

3534
static void _hash_scandel(IndexScanDesc scan, BlockNumber blkno, OffsetNumber offno);
3635
static bool _hash_scantouched(IndexScanDesc scan, BlockNumber blkno, OffsetNumber offno);

src/backend/access/hash/hashutil.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashutil.c,v 1.16 1999/07/14 01:19:36 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashutil.c,v 1.17 1999/07/15 15:18:33 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -18,7 +18,6 @@
1818
#include <fmgr.h>
1919
#include <utils/memutils.h>
2020
#include <access/iqual.h>
21-
#include <utils/mcxt.h>
2221

2322
#ifndef HAVE_MEMMOVE
2423
#include <regex/utils.h>

src/backend/access/heap/heapam.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.47 1999/07/14 01:19:37 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.48 1999/07/15 15:18:35 momjian Exp $
1111
*
1212
*
1313
* INTERFACE ROUTINES
@@ -89,7 +89,6 @@
8989
#include <utils/inval.h>
9090
#include <utils/memutils.h>
9191
#include <utils/builtins.h>
92-
#include <utils/mcxt.h>
9392

9493
#ifndef HAVE_MEMMOVE
9594
#include <regex/utils.h>

src/backend/access/heap/stats.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/heap/Attic/stats.c,v 1.16 1999/07/03 00:32:36 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/heap/Attic/stats.c,v 1.17 1999/07/15 15:18:35 momjian Exp $
1111
*
1212
* NOTES
1313
* initam should be moved someplace else.
@@ -21,7 +21,6 @@
2121
#include <postgres.h>
2222

2323
#include <access/heapam.h>
24-
#include <utils/mcxt.h>
2524

2625
#ifndef HAVE_MEMMOVE
2726
#include <regex/utils.h>

src/backend/access/index/indexam.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/index/indexam.c,v 1.31 1999/07/14 01:19:38 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/index/indexam.c,v 1.32 1999/07/15 15:18:37 momjian Exp $
1111
*
1212
* INTERFACE ROUTINES
1313
* index_open - open an index relation by relationId
@@ -70,7 +70,6 @@
7070
#include <fmgr.h>
7171
#include <storage/lmgr.h>
7272
#include <access/heapam.h>
73-
#include <utils/mcxt.h>
7473

7574
/* ----------------
7675
* undefine macros we aren't going to use that would otherwise

src/backend/access/nbtree/nbtinsert.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.43 1999/07/14 01:19:39 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.44 1999/07/15 15:18:38 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -19,8 +19,9 @@
1919
#include <access/nbtree.h>
2020
#include <access/heapam.h>
2121
#include <access/xact.h>
22+
#include <storage/bufmgr.h>
23+
#include <access/transam.h>
2224
#include <fmgr.h>
23-
#include <utils/mcxt.h>
2425

2526
#ifndef HAVE_MEMMOVE
2627
#include <regex/utils.h>

src/backend/access/nbtree/nbtpage.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.25 1999/07/14 01:19:41 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.26 1999/07/15 15:18:39 momjian Exp $
1212
*
1313
* NOTES
1414
* Postgres btree pages look like ordinary relation pages. The opaque
@@ -28,7 +28,7 @@
2828
#include <access/nbtree.h>
2929
#include <miscadmin.h>
3030
#include <storage/lmgr.h>
31-
#include <utils/mcxt.h>
31+
#include <storage/bufmgr.h>
3232

3333
#ifndef HAVE_MEMMOVE
3434
#include <regex/utils.h>

src/backend/access/nbtree/nbtscan.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/Attic/nbtscan.c,v 1.24 1999/07/14 01:19:41 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/Attic/nbtscan.c,v 1.25 1999/07/15 15:18:40 momjian Exp $
1111
*
1212
*
1313
* NOTES
@@ -30,8 +30,8 @@
3030
#include <postgres.h>
3131

3232
#include <storage/bufpage.h>
33+
#include <storage/bufmgr.h>
3334
#include <access/nbtree.h>
34-
#include <utils/mcxt.h>
3535

3636
typedef struct BTScanListData
3737
{

src/backend/access/nbtree/nbtsearch.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtsearch.c,v 1.46 1999/07/14 01:19:41 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtsearch.c,v 1.47 1999/07/15 15:18:40 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -17,9 +17,9 @@
1717
#include <access/genam.h>
1818
#include <fmgr.h>
1919
#include <storage/bufpage.h>
20+
#include <storage/bufmgr.h>
2021
#include <access/nbtree.h>
2122
#include <catalog/pg_proc.h>
22-
#include <utils/mcxt.h>
2323

2424
#ifndef HAVE_MEMMOVE
2525
#include <regex/utils.h>

src/backend/access/nbtree/nbtsort.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
*
77
* IDENTIFICATION
8-
* $Id: nbtsort.c,v 1.41 1999/07/14 01:19:42 momjian Exp $
8+
* $Id: nbtsort.c,v 1.42 1999/07/15 15:18:41 momjian Exp $
99
*
1010
* NOTES
1111
*
@@ -53,8 +53,8 @@
5353

5454
#include "access/nbtree.h"
5555
#include "storage/bufpage.h"
56+
#include "storage/bufmgr.h"
5657
#include "utils/memutils.h"
57-
#include "utils/mcxt.h"
5858

5959
#ifndef HAVE_MEMMOVE
6060
#include <regex/utils.h>

src/backend/access/nbtree/nbtutils.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtutils.c,v 1.28 1999/07/14 01:19:43 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtutils.c,v 1.29 1999/07/15 15:18:41 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -21,7 +21,6 @@
2121
#include "executor/execdebug.h"
2222
#include "fmgr.h"
2323
#include "storage/bufpage.h"
24-
#include "utils/mcxt.h"
2524

2625
extern int NIndexTupleProcessed;
2726

src/backend/access/rtree/rtget.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtget.c,v 1.14 1999/07/14 01:19:44 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtget.c,v 1.15 1999/07/15 15:18:43 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -20,7 +20,6 @@
2020
#include <access/iqual.h>
2121
#include <access/rtree.h>
2222
#include <storage/bufpage.h>
23-
#include <utils/mcxt.h>
2423

2524
#ifndef HAVE_MEMMOVE
2625
#include <regex/utils.h>

src/backend/access/rtree/rtproc.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtproc.c,v 1.19 1999/07/14 01:19:44 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtproc.c,v 1.20 1999/07/15 15:18:44 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -16,7 +16,6 @@
1616

1717
#include <utils/builtins.h>
1818
#include <utils/geo_decls.h>
19-
#include <utils/mcxt.h>
2019

2120
#ifndef HAVE_MEMMOVE
2221
#include <regex/utils.h>

src/backend/access/rtree/rtscan.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtscan.c,v 1.24 1999/07/14 01:19:45 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtscan.c,v 1.25 1999/07/15 15:18:44 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -20,7 +20,6 @@
2020
#include <storage/bufpage.h>
2121
#include <access/rtree.h>
2222
#include <access/rtstrat.h>
23-
#include <utils/mcxt.h>
2423

2524
#ifndef HAVE_MEMMOVE
2625
#include <regex/utils.h>

src/backend/access/transam/transam.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/transam/transam.c,v 1.27 1999/06/10 14:17:06 vadim Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/transam/transam.c,v 1.28 1999/07/15 15:18:44 momjian Exp $
1111
*
1212
* NOTES
1313
* This file contains the high level access-method interface to the
@@ -21,7 +21,6 @@
2121
#include <access/transam.h>
2222
#include <access/xact.h>
2323
#include <access/heapam.h>
24-
#include <utils/mcxt.h>
2524
#include <catalog/catname.h>
2625
#include <storage/spin.h>
2726
#include <commands/vacuum.h>

src/backend/access/transam/xact.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.42 1999/06/29 04:54:46 vadim Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.43 1999/07/15 15:18:45 momjian Exp $
1111
*
1212
* NOTES
1313
* Transaction aborts can now occur two ways:
@@ -150,7 +150,6 @@
150150
#include <access/transam.h>
151151
#include <storage/fd.h>
152152
#include <storage/proc.h>
153-
#include <utils/mcxt.h>
154153
#include <catalog/heap.h>
155154
#include <utils/relcache.h>
156155
#include <miscadmin.h>

src/backend/access/transam/xid.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Copyright (c) 1994, Regents of the University of California
77
*
8-
* $Id: xid.c,v 1.23 1999/07/14 01:19:45 momjian Exp $
8+
* $Id: xid.c,v 1.24 1999/07/15 15:18:45 momjian Exp $
99
*
1010
* OLD COMMENTS
1111
* XXX WARNING
@@ -22,7 +22,6 @@
2222

2323
#include <postgres.h>
2424
#include <access/xact.h>
25-
#include <utils/mcxt.h>
2625

2726
extern TransactionId NullTransactionId;
2827
extern TransactionId DisabledTransactionId;

src/backend/bootstrap/bootstrap.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Copyright (c) 1994, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.60 1999/05/25 16:07:56 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.61 1999/07/15 15:18:46 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -75,7 +75,6 @@
7575
#include "utils/geo_decls.h"
7676
#include "utils/hsearch.h"
7777
#include "utils/lsyscache.h"
78-
#include "utils/mcxt.h"
7978
#include "utils/nabstime.h"
8079
#include "utils/portal.h"
8180
#include "utils/rel.h"

src/backend/catalog/heap.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.89 1999/07/08 02:46:37 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.90 1999/07/15 15:18:48 momjian Exp $
1111
*
1212
*
1313
* INTERFACE ROUTINES
@@ -57,7 +57,6 @@
5757
#include "tcop/tcopprot.h"
5858
#include "utils/catcache.h"
5959
#include "utils/builtins.h"
60-
#include "utils/mcxt.h"
6160
#include "utils/relcache.h"
6261
#include "utils/syscache.h"
6362
#include "utils/tqual.h"

src/backend/catalog/index.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.81 1999/07/07 09:27:25 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.82 1999/07/15 15:18:49 momjian Exp $
1111
*
1212
*
1313
* INTERFACE ROUTINES
@@ -30,6 +30,7 @@
3030
#include "catalog/heap.h"
3131
#include "catalog/index.h"
3232
#include "catalog/indexing.h"
33+
#include "catalog/pg_index.h"
3334
#include "catalog/pg_proc.h"
3435
#include "catalog/pg_type.h"
3536
#include "executor/executor.h"
@@ -40,9 +41,9 @@
4041
#include "parser/parse_func.h"
4142
#include "storage/lmgr.h"
4243
#include "storage/smgr.h"
44+
#include "storage/bufpage.h"
4345
#include "utils/builtins.h"
4446
#include "utils/catcache.h"
45-
#include "utils/mcxt.h"
4647
#include "utils/relcache.h"
4748
#include "utils/syscache.h"
4849
#include "utils/tqual.h"

src/backend/catalog/pg_operator.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.37 1999/05/25 16:08:09 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.38 1999/07/15 15:18:50 momjian Exp $
1111
*
1212
* NOTES
1313
* these routines moved here from commands/define.c and somewhat cleaned up.
@@ -19,8 +19,10 @@
1919
#include "access/heapam.h"
2020
#include "catalog/catname.h"
2121
#include "catalog/pg_operator.h"
22+
#include "parser/parse_type.h"
2223
#include "catalog/pg_proc.h"
2324
#include "catalog/pg_type.h"
25+
#include "parser/parse_func.h"
2426
#include "fmgr.h"
2527
#include "miscadmin.h"
2628
#include "parser/parse_oper.h"

0 commit comments

Comments
 (0)