diff options
| author | Bruce Momjian <bruce@momjian.us> | 2006-07-13 16:49:20 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2006-07-13 16:49:20 +0000 |
| commit | a22d76d96adaa98ab20de290a1b710a199805ddc (patch) | |
| tree | 0c54c219cae248d98b5fffb1189ac5af559468b7 /src/include/access | |
| parent | 70e2e3d8b1189c2c74007b39137ba475ae9f1cbb (diff) | |
| download | postgresql-a22d76d96adaa98ab20de290a1b710a199805ddc.tar.gz | |
Allow include files to compile own their own.
Strip unused include files out unused include files, and add needed
includes to C files.
The next step is to remove unused include files in C files.
Diffstat (limited to 'src/include/access')
| -rw-r--r-- | src/include/access/genam.h | 3 | ||||
| -rw-r--r-- | src/include/access/gistscan.h | 3 | ||||
| -rw-r--r-- | src/include/access/hash.h | 3 | ||||
| -rw-r--r-- | src/include/access/htup.h | 5 | ||||
| -rw-r--r-- | src/include/access/itup.h | 4 | ||||
| -rw-r--r-- | src/include/access/relscan.h | 3 | ||||
| -rw-r--r-- | src/include/access/tuptoaster.h | 5 | ||||
| -rw-r--r-- | src/include/access/twophase.h | 4 | ||||
| -rw-r--r-- | src/include/access/xlog.h | 3 |
9 files changed, 14 insertions, 19 deletions
diff --git a/src/include/access/genam.h b/src/include/access/genam.h index 9a8828a33a..1afe18dd31 100644 --- a/src/include/access/genam.h +++ b/src/include/access/genam.h @@ -7,14 +7,13 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/genam.h,v 1.62 2006/07/03 22:45:39 tgl Exp $ + * $PostgreSQL: pgsql/src/include/access/genam.h,v 1.63 2006/07/13 16:49:18 momjian Exp $ * *------------------------------------------------------------------------- */ #ifndef GENAM_H #define GENAM_H -#include "access/itup.h" #include "access/relscan.h" #include "access/sdir.h" #include "nodes/primnodes.h" diff --git a/src/include/access/gistscan.h b/src/include/access/gistscan.h index dbe369af1a..80fa8e0698 100644 --- a/src/include/access/gistscan.h +++ b/src/include/access/gistscan.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/gistscan.h,v 1.29 2006/04/03 13:44:33 teodor Exp $ + * $PostgreSQL: pgsql/src/include/access/gistscan.h,v 1.30 2006/07/13 16:49:19 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -15,7 +15,6 @@ #define GISTSCAN_H #include "access/relscan.h" -#include "access/xlogdefs.h" extern Datum gistbeginscan(PG_FUNCTION_ARGS); extern Datum gistrescan(PG_FUNCTION_ARGS); diff --git a/src/include/access/hash.h b/src/include/access/hash.h index a845809a5d..77ed99baa6 100644 --- a/src/include/access/hash.h +++ b/src/include/access/hash.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/hash.h,v 1.72 2006/07/11 21:05:57 tgl Exp $ + * $PostgreSQL: pgsql/src/include/access/hash.h,v 1.73 2006/07/13 16:49:19 momjian Exp $ * * NOTES * modeled after Margo Seltzer's hash implementation for unix. @@ -22,6 +22,7 @@ #include "access/sdir.h" #include "access/xlog.h" #include "fmgr.h" +#include "storage/lock.h" /* * Mapping from hash bucket number to physical block number of bucket's diff --git a/src/include/access/htup.h b/src/include/access/htup.h index 170ad657fb..7a14fa35c2 100644 --- a/src/include/access/htup.h +++ b/src/include/access/htup.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/htup.h,v 1.83 2006/06/27 02:51:39 tgl Exp $ + * $PostgreSQL: pgsql/src/include/access/htup.h,v 1.84 2006/07/13 16:49:19 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -15,9 +15,8 @@ #define HTUP_H #include "storage/bufpage.h" +#include "storage/itemptr.h" #include "storage/relfilenode.h" -#include "access/transam.h" - /* * MaxTupleAttributeNumber limits the number of (user) columns in a tuple. diff --git a/src/include/access/itup.h b/src/include/access/itup.h index d93451a28f..3532e3576d 100644 --- a/src/include/access/itup.h +++ b/src/include/access/itup.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/itup.h,v 1.46 2006/05/07 01:21:30 tgl Exp $ + * $PostgreSQL: pgsql/src/include/access/itup.h,v 1.47 2006/07/13 16:49:19 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -16,9 +16,9 @@ #include "access/tupdesc.h" #include "access/tupmacs.h" +#include "storage/bufpage.h" #include "storage/itemptr.h" - /* * Index tuple header structure * diff --git a/src/include/access/relscan.h b/src/include/access/relscan.h index e7c409ed0e..b85e373d87 100644 --- a/src/include/access/relscan.h +++ b/src/include/access/relscan.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/relscan.h,v 1.45 2006/05/07 01:21:30 tgl Exp $ + * $PostgreSQL: pgsql/src/include/access/relscan.h,v 1.46 2006/07/13 16:49:19 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -15,6 +15,7 @@ #define RELSCAN_H #include "access/skey.h" +#include "utils/rel.h" #include "utils/tqual.h" diff --git a/src/include/access/tuptoaster.h b/src/include/access/tuptoaster.h index 9e847e4afb..dea48ed24c 100644 --- a/src/include/access/tuptoaster.h +++ b/src/include/access/tuptoaster.h @@ -6,17 +6,14 @@ * * Copyright (c) 2000-2006, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/include/access/tuptoaster.h,v 1.26 2006/03/05 15:58:54 momjian Exp $ + * $PostgreSQL: pgsql/src/include/access/tuptoaster.h,v 1.27 2006/07/13 16:49:19 momjian Exp $ * *------------------------------------------------------------------------- */ #ifndef TUPTOASTER_H #define TUPTOASTER_H -#include "access/heapam.h" #include "access/htup.h" -#include "access/tupmacs.h" -#include "utils/rel.h" /* diff --git a/src/include/access/twophase.h b/src/include/access/twophase.h index 7fe6caee92..14fac1a45e 100644 --- a/src/include/access/twophase.h +++ b/src/include/access/twophase.h @@ -7,17 +7,17 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/twophase.h,v 1.7 2006/03/05 15:58:54 momjian Exp $ + * $PostgreSQL: pgsql/src/include/access/twophase.h,v 1.8 2006/07/13 16:49:19 momjian Exp $ * *------------------------------------------------------------------------- */ #ifndef TWOPHASE_H #define TWOPHASE_H +#include "access/xlogdefs.h" #include "storage/proc.h" #include "utils/timestamp.h" - /* * GlobalTransactionData is defined in twophase.c; other places have no * business knowing the internal definition. diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h index bd1699f5ab..e076979a44 100644 --- a/src/include/access/xlog.h +++ b/src/include/access/xlog.h @@ -6,13 +6,12 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.71 2006/03/24 04:32:13 tgl Exp $ + * $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.72 2006/07/13 16:49:19 momjian Exp $ */ #ifndef XLOG_H #define XLOG_H #include "access/rmgr.h" -#include "access/transam.h" #include "access/xlogdefs.h" #include "lib/stringinfo.h" #include "storage/buf.h" |
