More cleanup

This commit is contained in:
Bruce Momjian 1999-07-16 17:07:40 +00:00
parent 4d5aa343de
commit 773088809d
35 changed files with 84 additions and 80 deletions

View File

@ -37,6 +37,7 @@ PARSER
* Unique index on base column not honored on inserts from inherited table
INSERT INTO inherit_table (unique_index_col) VALUES (dup) should fail
* CREATE TABLE x AS SELECT 1 UNION SELECT 2 fails
* CREATE TABLE test(col char(2) DEFAULT user) fails in length restriction
VIEWS

View File

@ -6,17 +6,17 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: genam.h,v 1.19 1999/07/15 23:03:33 momjian Exp $
* $Id: genam.h,v 1.20 1999/07/16 17:07:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef GENAM_H
#define GENAM_H
#include "access/sdir.h"
#include "access/funcindex.h"
#include "access/relscan.h"
#include "access/itup.h"
#include "access/relscan.h"
#include "access/sdir.h"
/* ----------------
* generalized index_ interface routines

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: hash.h,v 1.26 1999/07/15 23:03:34 momjian Exp $
* $Id: hash.h,v 1.27 1999/07/16 17:07:26 momjian Exp $
*
* NOTES
* modeled after Margo Seltzer's hash implementation for unix.
@ -16,10 +16,10 @@
#ifndef HASH_H
#define HASH_H
#include "access/sdir.h"
#include "access/funcindex.h"
#include "access/relscan.h"
#include "access/itup.h"
#include "access/relscan.h"
#include "access/sdir.h"
#include "utils/int8.h"
/*

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: heapam.h,v 1.44 1999/07/15 15:20:53 momjian Exp $
* $Id: heapam.h,v 1.45 1999/07/16 17:07:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -14,9 +14,9 @@
#define HEAPAM_H
#include <time.h>
#include "access/tupmacs.h"
#include "access/htup.h"
#include "access/relscan.h"
#include "access/tupmacs.h"
#include "storage/block.h"
#include "utils/rel.h"
#include "utils/tqual.h"

View File

@ -6,15 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: iqual.h,v 1.12 1999/07/15 23:03:34 momjian Exp $
* $Id: iqual.h,v 1.13 1999/07/16 17:07:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef IQUAL_H
#define IQUAL_H
#include "access/skey.h"
#include "access/itup.h"
#include "access/skey.h"
/* ----------------

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: itup.h,v 1.19 1999/07/15 23:03:35 momjian Exp $
* $Id: itup.h,v 1.20 1999/07/16 17:07:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -14,8 +14,8 @@
#define ITUP_H
#include "access/ibit.h"
#include "access/tupmacs.h"
#include "access/tupdesc.h"
#include "access/tupmacs.h"
#include "storage/itemptr.h"
#define MaxIndexAttributeNumber 7

View File

@ -6,17 +6,17 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nbtree.h,v 1.29 1999/07/15 23:03:35 momjian Exp $
* $Id: nbtree.h,v 1.30 1999/07/16 17:07:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NBTREE_H
#define NBTREE_H
#include "access/sdir.h"
#include "access/relscan.h"
#include "access/funcindex.h"
#include "access/itup.h"
#include "access/relscan.h"
#include "access/sdir.h"
/*
* BTPageOpaqueData -- At the end of every page, we store a pointer

View File

@ -6,16 +6,16 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: rtscan.h,v 1.7 1999/07/15 23:03:37 momjian Exp $
* $Id: rtscan.h,v 1.8 1999/07/16 17:07:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef RTSCAN_H
#define RTSCAN_H
#include "utils/rel.h"
#include "storage/block.h"
#include "storage/off.h"
#include "utils/rel.h"
void rtadjscans(Relation r, int op, BlockNumber blkno, OffsetNumber offnum);

View File

@ -6,16 +6,16 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: tupdesc.h,v 1.23 1999/07/15 23:03:38 momjian Exp $
* $Id: tupdesc.h,v 1.24 1999/07/16 17:07:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef TUPDESC_H
#define TUPDESC_H
#include "nodes/pg_list.h"
#include "access/attnum.h"
#include "catalog/pg_attribute.h"
#include "nodes/pg_list.h"
typedef struct attrDefault

View File

@ -6,15 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: xact.h,v 1.22 1999/07/15 23:03:38 momjian Exp $
* $Id: xact.h,v 1.23 1999/07/16 17:07:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef XACT_H
#define XACT_H
#include "utils/nabstime.h"
#include "access/transam.h"
#include "utils/nabstime.h"
/* ----------------
* transaction state structure

View File

@ -6,15 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: index.h,v 1.18 1999/07/15 23:03:42 momjian Exp $
* $Id: index.h,v 1.19 1999/07/16 17:07:29 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef INDEX_H
#define INDEX_H
#include "nodes/execnodes.h"
#include "access/itup.h"
#include "nodes/execnodes.h"
extern Form_pg_am AccessMethodObjectIdGetForm(Oid accessMethodObjectId);

View File

@ -6,15 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: defrem.h,v 1.16 1999/07/15 23:03:44 momjian Exp $
* $Id: defrem.h,v 1.17 1999/07/16 17:07:30 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef DEFREM_H
#define DEFREM_H
#include "tcop/dest.h"
#include "nodes/parsenodes.h"
#include "tcop/dest.h"
/*
* prototypes in defind.c

View File

@ -5,15 +5,15 @@
*
* Copyright (c) 1994-5, Regents of the University of California
*
* $Id: explain.h,v 1.8 1999/02/13 23:21:19 momjian Exp $
* $Id: explain.h,v 1.9 1999/07/16 17:07:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef EXPLAIN_H
#define EXPLAIN_H
#include "tcop/dest.h"
#include "nodes/parsenodes.h"
#include "tcop/dest.h"
extern void ExplainQuery(Query *query, bool verbose, CommandDest dest);

View File

@ -9,8 +9,8 @@
#ifndef TRIGGER_H
#define TRIGGER_H
#include "nodes/parsenodes.h"
#include "nodes/execnodes.h"
#include "nodes/parsenodes.h"
typedef uint32 TriggerEvent;

View File

@ -6,15 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: execFlatten.h,v 1.9 1999/07/15 15:21:04 momjian Exp $
* $Id: execFlatten.h,v 1.10 1999/07/16 17:07:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef EXECFLATTEN_H
#define EXECFLATTEN_H
#include "nodes/relation.h"
#include "nodes/execnodes.h"
#include "nodes/relation.h"
extern Datum ExecEvalIter(Iter *iterNode, ExprContext *econtext, bool *resultIsNull, bool *iterIsDone);

View File

@ -7,16 +7,16 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: execdesc.h,v 1.11 1999/07/15 23:03:47 momjian Exp $
* $Id: execdesc.h,v 1.12 1999/07/16 17:07:32 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef EXECDESC_H
#define EXECDESC_H
#include "tcop/dest.h"
#include "nodes/plannodes.h"
#include "nodes/parsenodes.h"
#include "nodes/plannodes.h"
#include "tcop/dest.h"
/* ----------------
* query descriptor:

View File

@ -6,20 +6,20 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: execnodes.h,v 1.32 1999/07/15 23:03:52 momjian Exp $
* $Id: execnodes.h,v 1.33 1999/07/16 17:07:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef EXECNODES_H
#define EXECNODES_H
#include "nodes/primnodes.h"
#include "executor/hashjoin.h"
#include "access/funcindex.h"
#include "access/relscan.h"
#include "access/sdir.h"
#include "nodes/params.h"
#include "executor/hashjoin.h"
#include "executor/tuptable.h"
#include "access/funcindex.h"
#include "nodes/params.h"
#include "nodes/primnodes.h"
/* ----------------
* IndexInfo information

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: memnodes.h,v 1.14 1999/07/15 23:03:53 momjian Exp $
* $Id: memnodes.h,v 1.15 1999/07/16 17:07:33 momjian Exp $
*
* XXX the typedefs in this file are different from the other ???nodes.h;
* they are pointers to structures instead of the structures themselves.
@ -19,8 +19,8 @@
#define MEMNODES_H
#include "lib/fstack.h"
#include "utils/memutils.h"
#include "nodes/nodes.h"
#include "utils/memutils.h"
/*
* MemoryContext

View File

@ -6,16 +6,16 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: primnodes.h,v 1.30 1999/07/15 23:03:56 momjian Exp $
* $Id: primnodes.h,v 1.31 1999/07/16 17:07:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PRIMNODES_H
#define PRIMNODES_H
#include "utils/fcache.h"
#include "access/attnum.h"
#include "nodes/pg_list.h"
#include "utils/fcache.h"
/* ----------------------------------------------------------------
* node definitions

View File

@ -6,15 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: xfunc.h,v 1.2 1999/07/15 23:03:59 momjian Exp $
* $Id: xfunc.h,v 1.3 1999/07/16 17:07:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef XFUNC_H
#define XFUNC_H
#include "utils/rel.h"
#include "nodes/relation.h"
#include "utils/rel.h"
/* command line arg flags */
#define XFUNC_OFF -1 /* do no optimization of expensive preds */

View File

@ -6,15 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: prep.h,v 1.16 1999/07/15 23:03:59 momjian Exp $
* $Id: prep.h,v 1.17 1999/07/16 17:07:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PREP_H
#define PREP_H
#include "nodes/plannodes.h"
#include "nodes/parsenodes.h"
#include "nodes/plannodes.h"
/*
* prototypes for prepqual.c

View File

@ -6,15 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: parse_coerce.h,v 1.14 1999/07/15 15:21:26 momjian Exp $
* $Id: parse_coerce.h,v 1.15 1999/07/16 17:07:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSE_COERCE_H
#define PARSE_COERCE_H
#include "parser/parse_node.h"
#include "catalog/pg_type.h"
#include "parser/parse_node.h"
typedef enum CATEGORY
{

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1995, Regents of the University of California
*
* $Id: postgres.h,v 1.24 1999/07/15 15:20:47 momjian Exp $
* $Id: postgres.h,v 1.25 1999/07/16 17:07:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -40,9 +40,9 @@
#include "config.h"
#endif
#include "c.h"
#include "utils/palloc.h"
#include "utils/mcxt.h"
#include "utils/elog.h"
#include "utils/mcxt.h"
#include "utils/palloc.h"
/* ----------------------------------------------------------------
* Section 1: simple type definitions

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: buf_internals.h,v 1.30 1999/07/15 23:04:08 momjian Exp $
* $Id: buf_internals.h,v 1.31 1999/07/16 17:07:37 momjian Exp $
*
* NOTE
* If BUFFERPAGE0 is defined, then 0 will be used as a
@ -17,8 +17,8 @@
#ifndef BUFMGR_INTERNALS_H
#define BUFMGR_INTERNALS_H
#include "storage/lmgr.h"
#include "storage/buf.h"
#include "storage/lmgr.h"
/* Buf Mgr constants */
/* in bufmgr.c */

View File

@ -6,19 +6,19 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: bufpage.h,v 1.25 1999/07/15 23:04:09 momjian Exp $
* $Id: bufpage.h,v 1.26 1999/07/16 17:07:37 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef BUFPAGE_H
#define BUFPAGE_H
#include "storage/off.h"
#include "storage/itemid.h"
#include "storage/item.h"
#include "storage/buf.h"
#include "storage/page.h"
#include "storage/bufmgr.h"
#include "storage/item.h"
#include "storage/itemid.h"
#include "storage/off.h"
#include "storage/page.h"
/*
* a postgres disk page is an abstraction layered on top of a postgres

View File

@ -6,15 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: itempos.h,v 1.8 1999/07/15 23:04:10 momjian Exp $
* $Id: itempos.h,v 1.9 1999/07/16 17:07:37 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef ITEMPOS_H
#define ITEMPOS_H
#include "storage/itemid.h"
#include "storage/buf.h"
#include "storage/itemid.h"
typedef struct ItemSubpositionData
{

View File

@ -6,15 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: itemptr.h,v 1.12 1999/07/15 23:04:11 momjian Exp $
* $Id: itemptr.h,v 1.13 1999/07/16 17:07:38 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef ITEMPTR_H
#define ITEMPTR_H
#include "storage/off.h"
#include "storage/block.h"
#include "storage/off.h"
/*
* ItemPointer:

View File

@ -6,15 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: lock.h,v 1.32 1999/07/15 23:04:12 momjian Exp $
* $Id: lock.h,v 1.33 1999/07/16 17:07:38 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef LOCK_H_
#define LOCK_H_
#include "storage/shmem.h"
#include "storage/itemptr.h"
#include "storage/shmem.h"
#include "storage/sinvaladt.h"
#include "utils/array.h"

View File

@ -6,15 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: shmem.h,v 1.19 1999/07/15 23:04:14 momjian Exp $
* $Id: shmem.h,v 1.20 1999/07/16 17:07:38 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef SHMEM_H
#define SHMEM_H
#include "utils/hsearch.h"
#include "storage/spin.h"
#include "utils/hsearch.h"
/* The shared memory region can start at a different address

View File

@ -6,15 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: sinvaladt.h,v 1.15 1999/07/15 23:04:15 momjian Exp $
* $Id: sinvaladt.h,v 1.16 1999/07/16 17:07:38 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef SINVALADT_H
#define SINVALADT_H
#include "storage/itemptr.h"
#include "storage/ipc.h"
#include "storage/itemptr.h"
/*
* The structure of the shared cache invaidation segment

View File

@ -6,15 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: smgr.h,v 1.15 1999/07/15 23:04:15 momjian Exp $
* $Id: smgr.h,v 1.16 1999/07/16 17:07:38 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef SMGR_H
#define SMGR_H
#include "storage/spin.h"
#include "storage/block.h"
#include "storage/spin.h"
#include "utils/rel.h"
#define SM_FAIL 0

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: builtins.h,v 1.83 1999/07/15 23:04:20 momjian Exp $
* $Id: builtins.h,v 1.84 1999/07/16 17:07:39 momjian Exp $
*
* NOTES
* This should normally only be included by fmgr.h.
@ -24,11 +24,11 @@
#include "storage/itemptr.h"
#include "utils/array.h"
#include "utils/geo_decls.h"
#include "utils/datetime.h"
#include "utils/nabstime.h"
#include "utils/int8.h"
#include "utils/geo_decls.h"
#include "utils/inet.h"
#include "utils/int8.h"
#include "utils/nabstime.h"
#include "utils/numeric.h"
/*

View File

@ -6,17 +6,17 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: psort.h,v 1.20 1999/07/15 15:21:42 momjian Exp $
* $Id: psort.h,v 1.21 1999/07/16 17:07:39 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PSORT_H
#define PSORT_H
#include "storage/fd.h"
#include "access/relscan.h"
#include "utils/lselect.h"
#include "nodes/plannodes.h"
#include "storage/fd.h"
#include "utils/lselect.h"
#define MAXTAPES 7 /* See Knuth Fig. 70, p273 */

View File

@ -6,17 +6,17 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: rel.h,v 1.24 1999/07/15 23:04:23 momjian Exp $
* $Id: rel.h,v 1.25 1999/07/16 17:07:40 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef REL_H
#define REL_H
#include "catalog/pg_am.h"
#include "catalog/pg_class.h"
#include "access/strat.h"
#include "access/tupdesc.h"
#include "catalog/pg_am.h"
#include "catalog/pg_class.h"
#include "rewrite/prs2lock.h"
#include "storage/fd.h"

View File

@ -19,6 +19,9 @@ do
do
[ -s /usr/include/$INCLUDE ] && continue
[ "$INCLUDE" = postgres.h ] && continue
# preserve configure-specific includes
grep -B1 -A1 -q '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' |
egrep -q '^#if|^#else|^#endif' && continue
cat /tmp/$$a |
grep -v '^#include[ ]*[<"]'"$INCLUDE"'[>"]' >/tmp/$$b
if [ "$IS_INCLUDE" = "Y" ]