Remove QUERY_LIMIT, use SELECT...LIMIT
Fix for EXPLAIN on inheritance(Tom)
Patch to allow vacuum on multi-segment tables(Hiroshi)
-R=Tree optimizer selectivity fix(Tom)
+R-Tree optimizer selectivity fix(Tom)
ACL file descriptor leak fix(Atsushi Ogawa)
New expresssion subtree code(Tom)
Avoid disk writes for read-only transactions(Vadim)
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/hash/hashscan.c,v 1.18 1999/07/14 01:19:36 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/hash/hashscan.c,v 1.19 1999/07/15 15:18:33 momjian Exp $
*
* NOTES
* Because we can be doing an index scan on a relation while we
-#include
static void _hash_scandel(IndexScanDesc scan, BlockNumber blkno, OffsetNumber offno);
static bool _hash_scantouched(IndexScanDesc scan, BlockNumber blkno, OffsetNumber offno);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/hash/hashutil.c,v 1.16 1999/07/14 01:19:36 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/hash/hashutil.c,v 1.17 1999/07/15 15:18:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
#include
-#include
#ifndef HAVE_MEMMOVE
#include
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.47 1999/07/14 01:19:37 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.48 1999/07/15 15:18:35 momjian Exp $
*
*
* INTERFACE ROUTINES
#include
#include
#include
-#include
#ifndef HAVE_MEMMOVE
#include
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/heap/Attic/stats.c,v 1.16 1999/07/03 00:32:36 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/heap/Attic/stats.c,v 1.17 1999/07/15 15:18:35 momjian Exp $
*
* NOTES
* initam should be moved someplace else.
-#include
#ifndef HAVE_MEMMOVE
#include
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/index/indexam.c,v 1.31 1999/07/14 01:19:38 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/index/indexam.c,v 1.32 1999/07/15 15:18:37 momjian Exp $
*
* INTERFACE ROUTINES
* index_open - open an index relation by relationId
#include
#include
-#include
/* ----------------
* undefine macros we aren't going to use that would otherwise
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.43 1999/07/14 01:19:39 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.44 1999/07/15 15:18:38 momjian Exp $
*
*-------------------------------------------------------------------------
*/
+#include
#include
-#include
#ifndef HAVE_MEMMOVE
#include
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.25 1999/07/14 01:19:41 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.26 1999/07/15 15:18:39 momjian Exp $
*
* NOTES
* Postgres btree pages look like ordinary relation pages. The opaque
#include
#include
-#include <utils/mcxt.h>
+#include <storage/bufmgr.h>
#ifndef HAVE_MEMMOVE
#include
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/nbtree/Attic/nbtscan.c,v 1.24 1999/07/14 01:19:41 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/nbtree/Attic/nbtscan.c,v 1.25 1999/07/15 15:18:40 momjian Exp $
*
*
* NOTES
#include
+#include
-#include
typedef struct BTScanListData
{
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtsearch.c,v 1.46 1999/07/14 01:19:41 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtsearch.c,v 1.47 1999/07/15 15:18:40 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
#include
+#include
#include
-#include
#ifndef HAVE_MEMMOVE
#include
*
*
* IDENTIFICATION
- * $Id: nbtsort.c,v 1.41 1999/07/14 01:19:42 momjian Exp $
+ * $Id: nbtsort.c,v 1.42 1999/07/15 15:18:41 momjian Exp $
*
* NOTES
*
#include "access/nbtree.h"
#include "storage/bufpage.h"
+#include "storage/bufmgr.h"
#include "utils/memutils.h"
-#include "utils/mcxt.h"
#ifndef HAVE_MEMMOVE
#include
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtutils.c,v 1.28 1999/07/14 01:19:43 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtutils.c,v 1.29 1999/07/15 15:18:41 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "executor/execdebug.h"
#include "fmgr.h"
#include "storage/bufpage.h"
-#include "utils/mcxt.h"
extern int NIndexTupleProcessed;
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtget.c,v 1.14 1999/07/14 01:19:44 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtget.c,v 1.15 1999/07/15 15:18:43 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
-#include
#ifndef HAVE_MEMMOVE
#include
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtproc.c,v 1.19 1999/07/14 01:19:44 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtproc.c,v 1.20 1999/07/15 15:18:44 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
#include
-#include
#ifndef HAVE_MEMMOVE
#include
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtscan.c,v 1.24 1999/07/14 01:19:45 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtscan.c,v 1.25 1999/07/15 15:18:44 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
-#include
#ifndef HAVE_MEMMOVE
#include
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/transam/transam.c,v 1.27 1999/06/10 14:17:06 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/transam/transam.c,v 1.28 1999/07/15 15:18:44 momjian Exp $
*
* NOTES
* This file contains the high level access-method interface to the
-#include
#include
#include
#include
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.42 1999/06/29 04:54:46 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.43 1999/07/15 15:18:45 momjian Exp $
*
* NOTES
* Transaction aborts can now occur two ways:
#include
#include
-#include
#include
#include
#include
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: xid.c,v 1.23 1999/07/14 01:19:45 momjian Exp $
+ * $Id: xid.c,v 1.24 1999/07/15 15:18:45 momjian Exp $
*
* OLD COMMENTS
* XXX WARNING
-#include
extern TransactionId NullTransactionId;
extern TransactionId DisabledTransactionId;
* Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.60 1999/05/25 16:07:56 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.61 1999/07/15 15:18:46 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "utils/geo_decls.h"
#include "utils/hsearch.h"
#include "utils/lsyscache.h"
-#include "utils/mcxt.h"
#include "utils/nabstime.h"
#include "utils/portal.h"
#include "utils/rel.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.89 1999/07/08 02:46:37 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.90 1999/07/15 15:18:48 momjian Exp $
*
*
* INTERFACE ROUTINES
#include "tcop/tcopprot.h"
#include "utils/catcache.h"
#include "utils/builtins.h"
-#include "utils/mcxt.h"
#include "utils/relcache.h"
#include "utils/syscache.h"
#include "utils/tqual.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.81 1999/07/07 09:27:25 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.82 1999/07/15 15:18:49 momjian Exp $
*
*
* INTERFACE ROUTINES
#include "catalog/heap.h"
#include "catalog/index.h"
#include "catalog/indexing.h"
+#include "catalog/pg_index.h"
#include "catalog/pg_proc.h"
#include "catalog/pg_type.h"
#include "executor/executor.h"
#include "parser/parse_func.h"
#include "storage/lmgr.h"
#include "storage/smgr.h"
+#include "storage/bufpage.h"
#include "utils/builtins.h"
#include "utils/catcache.h"
-#include "utils/mcxt.h"
#include "utils/relcache.h"
#include "utils/syscache.h"
#include "utils/tqual.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.37 1999/05/25 16:08:09 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.38 1999/07/15 15:18:50 momjian Exp $
*
* NOTES
* these routines moved here from commands/define.c and somewhat cleaned up.
#include "access/heapam.h"
#include "catalog/catname.h"
#include "catalog/pg_operator.h"
+#include "parser/parse_type.h"
#include "catalog/pg_proc.h"
#include "catalog/pg_type.h"
+#include "parser/parse_func.h"
#include "fmgr.h"
#include "miscadmin.h"
#include "parser/parse_oper.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.29 1999/05/25 16:08:11 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.30 1999/07/15 15:18:50 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "utils/lsyscache.h"
#include "utils/sets.h"
#include "utils/syscache.h"
+#include "parser/parse_type.h"
#ifndef HAVE_MEMMOVE
#include
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.39 1999/05/25 16:08:16 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.40 1999/07/15 15:18:52 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
#include
#include
-#include
#include
#include
#include
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.47 1999/06/19 04:54:12 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.48 1999/07/15 15:18:52 momjian Exp $
*
* NOTES
* The PortalExecutorHeapMemory crap needs to be eliminated
#include "utils/acl.h"
#include "utils/array.h"
#include "utils/builtins.h"
-#include "utils/mcxt.h"
#include "utils/portal.h"
#include "utils/relcache.h"
#include "utils/temprel.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.29 1999/05/25 16:08:22 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.30 1999/07/15 15:18:53 momjian Exp $
*
* DESCRIPTION
* The "DefineFoo" routines take the parse tree and pick out the
#include /* for fmgr */
#include /* prototype for textin() */
#include
-#include
#include
#include
+#include
static char *defGetString(DefElem *def);
static int defGetTypeLength(DefElem *def);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.25 1999/05/25 16:08:26 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.26 1999/07/15 15:18:54 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
#include
#include
-#include
#include
#include
#include
#include "nodes/memnodes.h"
#include "nodes/parsenodes.h"
#include "storage/lmgr.h"
+#include "storage/bufpage.h"
#include "storage/bufmgr.h"
-#include "utils/mcxt.h"
#include "utils/inval.h"
#include "utils/builtins.h"
#include "utils/syscache.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.110 1999/07/03 00:32:40 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.111 1999/07/15 15:18:55 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "storage/lmgr.h"
#include "utils/builtins.h"
#include "utils/inval.h"
-#include "utils/mcxt.h"
#include "utils/portal.h"
#include "utils/relcache.h"
#include "utils/syscache.h"
* ExecInitTee
* ExecEndTee
*
- * $Id: nodeTee.c,v 1.3 1999/05/25 22:41:04 momjian Exp $
+ * $Id: nodeTee.c,v 1.4 1999/07/15 15:19:02 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
#include "postgres.h"
-#include "utils/palloc.h"
#include "utils/relcache.h"
-#include "utils/mcxt.h"
#include "storage/bufmgr.h"
#include "storage/smgr.h"
#include "optimizer/internal.h"
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: execAmi.c,v 1.36 1999/07/13 21:17:31 momjian Exp $
+ * $Id: execAmi.c,v 1.37 1999/07/15 15:18:56 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "executor/executor.h"
#include "storage/smgr.h"
-#include "utils/mcxt.h"
#include "executor/nodeSeqscan.h"
#include "executor/nodeIndexscan.h"
#include "executor/nodeSort.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/execJunk.c,v 1.17 1999/05/17 17:03:10 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/execJunk.c,v 1.18 1999/07/15 15:18:57 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
-#include "utils/palloc.h"
#include "access/heapam.h"
#include "executor/executor.h"
#include "nodes/relation.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.88 1999/06/17 15:15:49 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.89 1999/07/15 15:18:57 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "executor/execdebug.h"
#include "executor/nodeIndexscan.h"
#include "utils/builtins.h"
-#include "utils/palloc.h"
#include "utils/acl.h"
#include "utils/syscache.h"
#include "utils/tqual.h"
#include "access/xact.h"
#include "catalog/heap.h"
#include "commands/trigger.h"
+#include "access/transam.h"
void ExecCheckPerms(CmdType operation, int resultRelation, List *rangeTable,
Query *parseTree);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.53 1999/06/12 19:22:40 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.54 1999/07/15 15:18:57 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "utils/builtins.h"
#include "utils/fcache.h"
#include "utils/fcache2.h"
-#include "utils/mcxt.h"
#include "utils/memutils.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/execTuples.c,v 1.25 1999/05/25 16:08:39 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/execTuples.c,v 1.26 1999/07/15 15:18:58 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "catalog/pg_type.h"
#include "parser/parse_type.h"
#include "storage/bufmgr.h"
-#include "utils/palloc.h"
#include "utils/lsyscache.h"
static TupleTableSlot *NodeGetResultTupleSlot(Plan *node);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/execUtils.c,v 1.45 1999/05/25 16:08:39 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/execUtils.c,v 1.46 1999/07/15 15:18:58 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "optimizer/clauses.h"
#include "parser/parsetree.h"
#include "utils/lsyscache.h"
-#include "utils/mcxt.h"
+#include "catalog/pg_index.h"
static void ExecGetIndexKeyInfo(Form_pg_index indexTuple, int *numAttsOutP,
AttrNumber **attsOutP, FuncIndexInfoPtr fInfoP);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/functions.c,v 1.26 1999/05/25 16:08:39 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/functions.c,v 1.27 1999/07/15 15:18:59 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "fmgr.h"
#include "utils/fcache.h"
#include "utils/datum.h"
-#include "utils/elog.h"
-#include "utils/palloc.h"
#include "utils/syscache.h"
#include "catalog/pg_language.h"
#include "access/heapam.h"
#include "executor/executor.h"
#include "executor/nodeAgg.h"
#include "storage/bufmgr.h"
-#include "utils/palloc.h"
#include "utils/syscache.h"
#include "optimizer/clauses.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/nodeAppend.c,v 1.19 1999/05/25 16:08:40 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/nodeAppend.c,v 1.20 1999/07/15 15:19:01 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "executor/execdebug.h"
#include "executor/nodeAppend.h"
#include "executor/nodeIndexscan.h"
-#include "utils/palloc.h"
-#include "utils/mcxt.h"
#include "parser/parsetree.h" /* for rt_store() macro */
static bool exec_append_initialize_next(Append *node);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/nodeIndexscan.c,v 1.36 1999/05/25 16:08:43 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/nodeIndexscan.c,v 1.37 1999/07/15 15:19:01 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "access/skey.h"
#include "access/heapam.h"
#include "access/genam.h"
-#include "utils/palloc.h"
-#include "utils/mcxt.h"
#include "catalog/index.h"
#include "storage/bufmgr.h"
#include "storage/lmgr.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/nodeSort.c,v 1.19 1999/06/03 03:17:37 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/nodeSort.c,v 1.20 1999/07/15 15:19:01 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "executor/execdebug.h"
#include "executor/nodeSort.h"
#include "access/heapam.h"
-#include "utils/palloc.h"
#include "utils/psort.h"
#include "catalog/catalog.h"
#include "catalog/heap.h"
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: stringinfo.c,v 1.18 1999/07/14 01:19:46 momjian Exp $
+ * $Id: stringinfo.c,v 1.19 1999/07/15 15:19:02 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "lib/stringinfo.h"
-#include "utils/mcxt.h"
#ifdef NOT_USED
/*
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: be-dumpdata.c,v 1.25 1999/05/25 22:41:06 momjian Exp $
+ * $Id: be-dumpdata.c,v 1.26 1999/07/15 15:19:03 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
#include
#include
-#include
#include
#include
#include
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.35 1999/06/04 21:13:38 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.36 1999/07/15 15:19:04 momjian Exp $
*
* NOTES
* This should be moved to a more appropriate place. It is here
#include
#include
#include
-#include
#include /* for superuser() */
#include /* for O_ */
#include
* Dec 17, 1997 - Todd A. Brandys
* Orignal Version Completed.
*
- * $Id: crypt.c,v 1.19 1999/07/14 01:19:47 momjian Exp $
+ * $Id: crypt.c,v 1.20 1999/07/15 15:19:05 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "utils/nabstime.h"
#include "storage/fd.h"
#include "libpq/crypt.h"
-#include "utils/mcxt.h"
#ifdef HAVE_CRYPT_H
#include
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.82 1999/05/25 22:41:11 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.83 1999/07/15 15:19:06 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "utils/syscache.h"
#include "utils/builtins.h" /* for namecpy */
-#include "utils/elog.h"
-#include "utils/palloc.h"
#include "catalog/pg_type.h"
#include "storage/lmgr.h"
#include "optimizer/planmain.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.39 1999/06/06 17:46:40 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.40 1999/07/15 15:19:06 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "utils/builtins.h" /* for namestrcmp() */
#include "utils/datum.h"
-#include "utils/elog.h"
#include "storage/itemptr.h"
static bool equali(List *a, List *b);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/Attic/freefuncs.c,v 1.19 1999/05/26 12:55:20 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/Attic/freefuncs.c,v 1.20 1999/07/15 15:19:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "utils/syscache.h"
#include "utils/builtins.h" /* for namecpy */
-#include "utils/elog.h"
-#include "utils/palloc.h"
#include "catalog/pg_type.h"
#include "storage/lmgr.h"
#include "optimizer/planmain.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/list.c,v 1.22 1999/07/14 01:19:49 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/list.c,v 1.23 1999/07/15 15:19:07 momjian Exp $
*
* NOTES
* XXX a few of the following functions are duplicated to handle
#include "nodes/pg_list.h"
#include "nodes/parsenodes.h"
#include "utils/builtins.h" /* for namecpy */
-#include "utils/elog.h"
-#include "utils/palloc.h"
-#include "utils/mcxt.h"
/*
* makeList
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/nodes.c,v 1.8 1999/07/14 01:19:50 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/nodes.c,v 1.9 1999/07/15 15:19:08 momjian Exp $
*
* HISTORY
* Andrew Yu Oct 20, 1994 file creation
*/
#include
#include "postgres.h"
-#include "utils/palloc.h"
-#include "utils/elog.h"
#include "nodes/nodes.h"
-#include "utils/mcxt.h"
/*
* newNode -
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: outfuncs.c,v 1.86 1999/05/25 22:41:14 momjian Exp $
+ * $Id: outfuncs.c,v 1.87 1999/07/15 15:19:08 momjian Exp $
*
* NOTES
* Every (plan) node in POSTGRES has an associated "out" routine which
#include "utils/syscache.h"
#include "utils/lsyscache.h"
#include "fmgr.h"
-#include "utils/elog.h"
#include "utils/datum.h"
-#include "utils/palloc.h"
#include "nodes/nodes.h"
#include "nodes/execnodes.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/read.c,v 1.15 1999/05/19 16:46:11 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/read.c,v 1.16 1999/07/15 15:19:08 momjian Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
#include "postgres.h"
#include "nodes/pg_list.h"
#include "nodes/readfuncs.h"
-#include "utils/elog.h"
/*
* stringToNode -
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.65 1999/07/13 21:17:31 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.66 1999/07/15 15:19:08 momjian Exp $
*
* NOTES
* Most of the read functions for plan nodes are tested. (In fact, they
#include "access/htup.h"
#include "fmgr.h"
#include "utils/builtins.h"
-#include "utils/elog.h"
-#include "utils/palloc.h"
#include "utils/lsyscache.h"
#include "utils/syscache.h"
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo_copy.c,v 1.5 1999/02/13 23:16:04 momjian Exp $
+ * $Id: geqo_copy.c,v 1.6 1999/07/15 15:19:09 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/pg_list.h"
#include "nodes/relation.h"
#include "nodes/primnodes.h"
-
-#include "utils/palloc.h"
-#include "utils/elog.h"
-
#include "optimizer/internal.h"
#include "optimizer/paths.h"
#include "optimizer/pathnode.h"
* CX operator according to Oliver et al
* (Proc 2nd Int'l Conf on GA's)
*
-* $Id: geqo_cx.c,v 1.6 1999/02/13 23:16:05 momjian Exp $
+* $Id: geqo_cx.c,v 1.7 1999/07/15 15:19:10 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/relation.h"
#include "nodes/primnodes.h"
-#include "utils/palloc.h"
-#include "utils/elog.h"
#include "optimizer/internal.h"
#include "optimizer/paths.h"
* geqo_erx.c
* edge recombination crossover [ER]
*
-* $Id: geqo_erx.c,v 1.12 1999/07/14 01:19:51 momjian Exp $
+* $Id: geqo_erx.c,v 1.13 1999/07/15 15:19:11 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/relation.h"
#include "nodes/primnodes.h"
-#include "utils/palloc.h"
-#include "utils/elog.h"
#include "optimizer/internal.h"
#include "optimizer/paths.h"
#include "optimizer/geqo_recombination.h"
#include "optimizer/geqo_random.h"
-#include "utils/mcxt.h"
static int gimme_edge(Gene gene1, Gene gene2, Edge *edge_table);
static void remove_gene(Gene gene, Edge edge, Edge *edge_table);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo_eval.c,v 1.39 1999/05/25 22:41:19 momjian Exp $
+ * $Id: geqo_eval.c,v 1.40 1999/07/15 15:19:11 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/relation.h"
#include "nodes/primnodes.h"
-#include "utils/palloc.h"
-#include "utils/elog.h"
#include "utils/portal.h"
#include "optimizer/internal.h"
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo_main.c,v 1.16 1999/05/25 16:09:16 momjian Exp $
+ * $Id: geqo_main.c,v 1.17 1999/07/15 15:19:11 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/plannodes.h"
#include "nodes/primnodes.h"
-#include "utils/palloc.h"
-#include "utils/elog.h"
#include "optimizer/internal.h"
#include "optimizer/paths.h"
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo_misc.c,v 1.19 1999/05/25 22:41:20 momjian Exp $
+ * $Id: geqo_misc.c,v 1.20 1999/07/15 15:19:11 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/relation.h"
#include "nodes/primnodes.h"
-#include "utils/palloc.h"
-#include "utils/elog.h"
#include "optimizer/internal.h"
#include "optimizer/paths.h"
*
* TSP mutation routines
*
-* $Id: geqo_mutation.c,v 1.5 1999/02/13 23:16:09 momjian Exp $
+* $Id: geqo_mutation.c,v 1.6 1999/07/15 15:19:11 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/relation.h"
#include "nodes/primnodes.h"
-#include "utils/palloc.h"
-#include "utils/elog.h"
#include "optimizer/internal.h"
#include "optimizer/paths.h"
* OX1 operator according to Davis
* (Proc Int'l Joint Conf on AI)
*
-* $Id: geqo_ox1.c,v 1.5 1999/02/13 23:16:10 momjian Exp $
+* $Id: geqo_ox1.c,v 1.6 1999/07/15 15:19:12 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/relation.h"
#include "nodes/primnodes.h"
-#include "utils/palloc.h"
-#include "utils/elog.h"
#include "optimizer/internal.h"
#include "optimizer/paths.h"
* OX2 operator according to Syswerda
* (The Genetic Algorithms Handbook, ed L Davis)
*
-* $Id: geqo_ox2.c,v 1.5 1999/02/13 23:16:10 momjian Exp $
+* $Id: geqo_ox2.c,v 1.6 1999/07/15 15:19:12 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/relation.h"
#include "nodes/primnodes.h"
-#include "utils/palloc.h"
-#include "utils/elog.h"
#include "optimizer/internal.h"
#include "optimizer/paths.h"
*
* Copyright (c) 1994, Regents of the University of California
*
-* $Id: geqo_params.c,v 1.18 1999/07/14 01:19:51 momjian Exp $
+* $Id: geqo_params.c,v 1.19 1999/07/15 15:19:13 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/relation.h"
#include "nodes/primnodes.h"
-#include "utils/palloc.h"
-#include "utils/elog.h"
#include "optimizer/internal.h"
#include "optimizer/paths.h"
#include "storage/fd.h"
-#include "utils/mcxt.h"
/*
* Parameter values read from the config file (or defaulted) are stored here
* PMX operator according to Goldberg & Lingle
* (Proc Int'l Conf on GA's)
*
-* $Id: geqo_pmx.c,v 1.6 1999/07/14 01:19:52 momjian Exp $
+* $Id: geqo_pmx.c,v 1.7 1999/07/15 15:19:13 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/relation.h"
#include "nodes/primnodes.h"
-#include "utils/palloc.h"
-#include "utils/elog.h"
#include "optimizer/internal.h"
#include "optimizer/paths.h"
#include "optimizer/geqo_recombination.h"
#include "optimizer/geqo_random.h"
-#include "utils/mcxt.h"
/* pmx
*
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo_pool.c,v 1.13 1999/07/14 01:19:52 momjian Exp $
+ * $Id: geqo_pool.c,v 1.14 1999/07/15 15:19:14 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/relation.h"
#include "nodes/primnodes.h"
-#include "utils/palloc.h"
-#include "utils/elog.h"
#include "optimizer/internal.h"
#include "optimizer/paths.h"
#include "optimizer/geqo_copy.h"
#include "optimizer/geqo_recombination.h"
-#include "utils/mcxt.h"
static int compare(const void *arg1, const void *arg2);
* PX operator according to Syswerda
* (The Genetic Algorithms Handbook, L Davis, ed)
*
-* $Id: geqo_px.c,v 1.6 1999/02/13 23:16:12 momjian Exp $
+* $Id: geqo_px.c,v 1.7 1999/07/15 15:19:14 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/relation.h"
#include "nodes/primnodes.h"
-#include "utils/palloc.h"
-#include "utils/elog.h"
#include "optimizer/internal.h"
#include "optimizer/paths.h"
* geqo_recombination.c
* misc recombination procedures
*
-* $Id: geqo_recombination.c,v 1.8 1999/07/14 01:19:53 momjian Exp $
+* $Id: geqo_recombination.c,v 1.9 1999/07/15 15:19:15 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/relation.h"
#include "nodes/primnodes.h"
-#include "utils/palloc.h"
-#include "utils/elog.h"
#include "optimizer/internal.h"
#include "optimizer/paths.h"
#include "optimizer/geqo_recombination.h"
#include "optimizer/geqo_random.h"
-#include "utils/mcxt.h"
/*
* init_tour
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo_selection.c,v 1.7 1999/02/13 23:16:13 momjian Exp $
+ * $Id: geqo_selection.c,v 1.8 1999/07/15 15:19:15 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/relation.h"
#include "nodes/primnodes.h"
-#include "utils/palloc.h"
-#include "utils/elog.h"
#include "optimizer/internal.h"
#include "optimizer/paths.h"
*
*
* IDENTIFICATION
-* $Header: /cvsroot/pgsql/src/backend/optimizer/geqo/Attic/minspantree.c,v 1.12 1999/05/25 22:41:22 momjian Exp $
+* $Header: /cvsroot/pgsql/src/backend/optimizer/geqo/Attic/minspantree.c,v 1.13 1999/07/15 15:19:15 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/relation.h"
#include "nodes/primnodes.h"
-#include "utils/palloc.h"
#include "optimizer/cost.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/path/_deadcode/Attic/predmig.c,v 1.4 1999/05/25 22:41:35 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/_deadcode/Attic/predmig.c,v 1.5 1999/07/15 15:19:19 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/nodes.h"
#include "nodes/primnodes.h"
#include "nodes/relation.h"
-#include "utils/palloc.h"
-#include "utils/elog.h"
-#include "optimizer/xfunc.h"
#include "optimizer/pathnode.h"
#include "optimizer/internal.h"
#include "optimizer/cost.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/path/_deadcode/Attic/xfunc.c,v 1.5 1999/07/03 00:32:42 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/_deadcode/Attic/xfunc.c,v 1.6 1999/07/15 15:19:19 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "optimizer/keys.h"
#include "optimizer/pathnode.h"
#include "optimizer/tlist.h" /* for get_expr */
-#include "optimizer/xfunc.h"
#include "storage/buf_internals.h" /* for NBuffers */
#include "tcop/dest.h"
#include "utils/syscache.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.46 1999/05/25 22:41:25 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.47 1999/07/15 15:19:17 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "optimizer/paths.h"
#include "optimizer/pathnode.h"
#include "optimizer/clauses.h"
-#include "optimizer/xfunc.h"
#include "optimizer/cost.h"
#include "commands/creatinh.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.57 1999/06/19 04:54:14 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.58 1999/07/15 15:19:18 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "optimizer/paths.h"
#include "optimizer/plancat.h"
#include "optimizer/pathnode.h"
-#include "optimizer/xfunc.h"
#include "parser/parsetree.h" /* for getrelid() */
#include "parser/parse_expr.h" /* for exprType() */
#include "parser/parse_oper.h" /* for oprid() and oper() */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/path/orindxpath.c,v 1.25 1999/05/25 22:41:32 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/orindxpath.c,v 1.26 1999/07/15 15:19:18 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "optimizer/paths.h"
#include "optimizer/cost.h"
#include "optimizer/plancat.h"
-#include "optimizer/xfunc.h"
#include "parser/parsetree.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/prune.c,v 1.39 1999/05/25 22:41:33 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/prune.c,v 1.40 1999/07/15 15:19:18 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "optimizer/paths.h"
#include "optimizer/pathnode.h"
-#include "utils/elog.h"
static List *merge_rel_with_same_relids(RelOptInfo *rel, Relids unjoined_relids);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.57 1999/05/25 22:41:38 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.58 1999/07/15 15:19:20 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/makefuncs.h"
#include "utils/lsyscache.h"
-#include "utils/palloc.h"
#include "utils/builtins.h"
#include "optimizer/restrictinfo.h"
#include "optimizer/planmain.h"
#include "optimizer/tlist.h"
#include "optimizer/planner.h"
-#include "optimizer/xfunc.h"
#include "optimizer/internal.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/initsplan.c,v 1.31 1999/05/25 22:41:39 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/initsplan.c,v 1.32 1999/07/15 15:19:22 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "catalog/pg_type.h"
#include "utils/lsyscache.h"
-#include "utils/palloc.h"
#include "optimizer/internal.h"
#include "optimizer/planmain.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planmain.c,v 1.37 1999/06/12 19:38:30 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planmain.c,v 1.38 1999/07/15 15:19:22 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "optimizer/keys.h"
#include "optimizer/tlist.h"
#include "optimizer/var.h"
-#include "optimizer/xfunc.h"
#include "optimizer/cost.h"
#include "tcop/dest.h"
-#include "utils/elog.h"
-#include "utils/palloc.h"
#include "nodes/memnodes.h"
-#include "utils/mcxt.h"
#include "utils/lsyscache.h"
static Plan *subplanner(Query *root, List *flat_tlist, List *qual);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.57 1999/06/21 01:20:57 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.58 1999/07/15 15:19:23 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "catalog/pg_type.h"
#include "parser/parse_expr.h"
-#include "utils/elog.h"
#include "utils/lsyscache.h"
#include "access/heapam.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/setrefs.c,v 1.50 1999/06/06 17:38:10 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/setrefs.c,v 1.51 1999/07/15 15:19:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/primnodes.h"
#include "nodes/relation.h"
-#include "utils/elog.h"
#include "nodes/nodeFuncs.h"
#include "nodes/makefuncs.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/prep/preptlist.c,v 1.22 1999/05/29 01:48:06 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/prep/preptlist.c,v 1.23 1999/07/15 15:19:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "utils/builtins.h"
#include "utils/syscache.h"
#include "utils/lsyscache.h"
-#include "utils/palloc.h"
#include "parser/parse_type.h"
#include "parser/parsetree.h" /* for getrelid() */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepunion.c,v 1.33 1999/06/10 06:55:40 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepunion.c,v 1.34 1999/07/15 15:19:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "parser/parsetree.h"
#include "parser/parse_clause.h"
-#include "utils/elog.h"
#include "utils/lsyscache.h"
#include "optimizer/internal.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/util/Attic/keys.c,v 1.21 1999/05/25 22:41:48 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/util/Attic/keys.c,v 1.22 1999/07/15 15:19:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/pg_list.h"
#include "nodes/nodes.h"
#include "nodes/relation.h"
-#include "utils/elog.h"
#include "optimizer/internal.h"
#include "optimizer/keys.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.42 1999/05/25 22:41:49 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.43 1999/07/15 15:19:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "nodes/relation.h"
-#include "utils/elog.h"
#include "optimizer/internal.h"
#include "optimizer/pathnode.h"
#include "optimizer/plancat.h"
#include "optimizer/cost.h"
#include "optimizer/keys.h"
-#include "optimizer/xfunc.h"
#include "optimizer/ordering.h"
#include "parser/parsetree.h" /* for getrelid() */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/util/tlist.c,v 1.33 1999/05/25 22:41:51 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/util/tlist.c,v 1.34 1999/07/15 15:19:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/primnodes.h"
#include "nodes/pg_list.h"
#include "nodes/nodeFuncs.h"
-#include "utils/elog.h"
#include "utils/lsyscache.h"
#include "optimizer/internal.h"
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: analyze.c,v 1.111 1999/07/13 21:17:32 momjian Exp $
+ * $Id: analyze.c,v 1.112 1999/07/15 15:19:29 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "parse.h"
#include "utils/builtins.h"
-#include "utils/mcxt.h"
static Query *transformStmt(ParseState *pstate, Node *stmt);
static Query *transformDeleteStmt(ParseState *pstate, DeleteStmt *stmt);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.89 1999/07/13 21:17:33 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.90 1999/07/15 15:19:30 momjian Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
#include "parser/gramparse.h"
#include "parser/parse_type.h"
#include "utils/acl.h"
-#include "utils/palloc.h"
#include "catalog/catname.h"
-#include "utils/elog.h"
#include "access/xact.h"
#include "storage/lmgr.h"
#include "utils/numeric.h"
#include "parser/analyze.h"
#include "catalog/pg_type.h"
+#include "storage/bufpage.h"
#ifdef MULTIBYTE
#include "mb/pg_wchar.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/keywords.c,v 1.58 1999/07/13 21:17:34 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/keywords.c,v 1.59 1999/07/15 15:19:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/pg_list.h"
#include "parse.h"
#include "parser/keywords.h"
-#include "utils/elog.h"
/*
* List of (keyword-name, keyword-token-value) pairs.
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.37 1999/05/26 12:55:35 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.38 1999/07/15 15:19:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "parser/parse_target.h"
#include "parser/parse_coerce.h"
#include "nodes/print.h"
-
+#include "nodes/relation.h"
#include "parse.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_oper.c,v 1.25 1999/05/25 16:10:18 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_oper.c,v 1.26 1999/07/15 15:19:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "parser/parse_coerce.h"
#include "storage/bufmgr.h"
#include "utils/syscache.h"
+#include "parser/parse_func.h"
static Oid *oper_select_candidate(int nargs, Oid *input_typeids,
CandidateList candidates);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.22 1999/05/25 16:10:19 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.23 1999/07/15 15:19:32 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "utils/acl.h"
#include "utils/builtins.h"
#include "utils/lsyscache.h"
+#include "parser/parse_type.h"
static void checkTargetTypes(ParseState *pstate, char *target_colname,
char *refname, char *colname);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/scansup.c,v 1.13 1999/05/25 16:10:25 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/scansup.c,v 1.14 1999/07/15 15:19:32 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "miscadmin.h"
#include "parser/scansup.h"
-#include "utils/elog.h"
/* ----------------
* scanstr
#include "postgres.h"
#include "dynloader.h"
-#include "utils/elog.h"
#include "fmgr.h"
extern char *pg_pathname;
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/port/dynloader/linux.c,v 1.11 1999/02/21 03:49:13 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/port/dynloader/linux.c,v 1.12 1999/07/15 15:19:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#endif
#include "dynloader.h"
-#include "utils/elog.h"
#include "fmgr.h"
#ifdef NOT_USED
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/port/dynloader/ultrix4.c,v 1.5 1999/02/13 23:17:29 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/port/dynloader/ultrix4.c,v 1.6 1999/07/15 15:19:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "fmgr.h"
#include "port-protos.h"
-#include "utils/elog.h"
extern char *pg_pathname;
-/* $Id: random.c,v 1.6 1999/02/07 22:07:02 tgl Exp $ */
+/* $Id: random.c,v 1.7 1999/07/15 15:19:33 momjian Exp $ */
#include
#include /* for pow() prototype */
#include
-#include "config.h"
-#include "rusagestub.h"
-
long
random()
{
-/* $Id: srandom.c,v 1.6 1999/02/07 22:07:02 tgl Exp $ */
+/* $Id: srandom.c,v 1.7 1999/07/15 15:19:34 momjian Exp $ */
#include
#include /* for pow() prototype */
#include
-#include "config.h"
-#include "rusagestub.h"
-
void
srandom(unsigned int seed)
{
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.108 1999/07/07 17:17:48 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.109 1999/07/15 15:19:38 momjian Exp $
*
* NOTES
*
#include "tcop/tcopprot.h"
#include "commands/async.h"
#include "nodes/nodes.h"
-#include "utils/mcxt.h"
#include "storage/proc.h"
-#include "utils/elog.h"
#ifndef HAVE_GETHOSTNAME
#include "port-protos.h" /* For gethostname() */
#endif
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/rewrite/Attic/locks.c,v 1.17 1999/02/13 23:17:44 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/rewrite/Attic/locks.c,v 1.18 1999/07/15 15:19:40 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h" /* for oid defs */
-#include "utils/elog.h" /* for elog */
#include "nodes/pg_list.h" /* lisp support package */
#include "nodes/parsenodes.h"
#include "nodes/primnodes.h" /* Var node def */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteDefine.c,v 1.30 1999/07/04 05:16:05 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteDefine.c,v 1.31 1999/07/15 15:19:41 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "access/heapam.h" /* access methods like amopenr */
#include "catalog/pg_rewrite.h"
#include "nodes/parsenodes.h"
-#include "nodes/pg_list.h" /* for Lisp support */
+#include "nodes/pg_list.h"
#include "parser/parse_relation.h"
#include "rewrite/locks.h"
#include "rewrite/rewriteDefine.h"
#include "rewrite/rewriteSupport.h"
#include "tcop/tcopprot.h"
#include "utils/builtins.h"
-#include "utils/lsyscache.h" /* for get_typlen */
-#include "utils/rel.h" /* for Relation stuff */
-
+#include "utils/lsyscache.h"
+#include "utils/rel.h"
+#include "storage/bufpage.h"
Oid LastOidProcessed = InvalidOid;
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteHandler.c,v 1.49 1999/07/13 21:17:35 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteHandler.c,v 1.50 1999/07/15 15:19:43 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
#include "postgres.h"
#include "miscadmin.h"
-#include "utils/palloc.h"
-#include "utils/elog.h"
#include "utils/rel.h"
#include "nodes/pg_list.h"
#include "nodes/primnodes.h"
#include "nodes/relation.h"
-
+#include "parser/parse_type.h"
#include "parser/parsetree.h" /* for parsetree manipulation */
#include "parser/parse_relation.h"
#include "nodes/parsenodes.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteManip.c,v 1.33 1999/07/13 21:17:36 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteManip.c,v 1.34 1999/07/15 15:19:43 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
#include "postgres.h"
#include "nodes/pg_list.h"
-#include "utils/elog.h"
#include "nodes/nodes.h"
#include "nodes/relation.h"
#include "nodes/primnodes.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteSupport.c,v 1.32 1999/02/13 23:17:52 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteSupport.c,v 1.33 1999/07/15 15:19:43 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "storage/bufmgr.h"
#include "utils/builtins.h" /* for textout */
#include "utils/catcache.h" /* for CacheContext */
-#include "utils/mcxt.h" /* MemoryContext stuff */
#include "utils/rel.h" /* for Relation, RelationData ... */
#include "utils/syscache.h" /* for SearchSysCache */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.56 1999/06/29 04:54:47 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.57 1999/07/15 15:19:44 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "miscadmin.h"
#include "utils/builtins.h"
#include "utils/hsearch.h"
-#include "utils/palloc.h"
#include "utils/memutils.h"
#include "utils/relcache.h"
#include "executor/execdebug.h" /* for NDirectFileRead */
* Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Id: fd.c,v 1.44 1999/07/14 01:19:53 momjian Exp $
+ * $Id: fd.c,v 1.45 1999/07/15 15:19:47 momjian Exp $
*
* NOTES:
*
#include "postgres.h"
#include "miscadmin.h" /* for DataDir */
-#include "utils/palloc.h"
#include "storage/fd.h"
-#include "utils/elog.h"
-#include "utils/mcxt.h"
/*
* Problem: Postgres does a system(ld...) to do dynamic loading.
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.42 1999/06/06 20:19:35 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.43 1999/07/15 15:19:48 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "utils/memutils.h"
#include "access/xact.h"
#include "utils/tqual.h"
+#include "access/transam.h"
/* shared memory global variables */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.20 1999/05/28 17:03:28 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.21 1999/07/15 15:19:49 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "storage/sinvaladt.h"
#include "storage/lmgr.h"
#include "utils/memutils.h"
-#include "utils/palloc.h"
#include "utils/trace.h"
/* ----------------
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lmgr.c,v 1.27 1999/06/10 14:17:11 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lmgr.c,v 1.28 1999/07/15 15:19:51 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "storage/multilev.h"
#include "storage/lmgr.h"
-#include "utils/palloc.h"
-#include "utils/mcxt.h"
#include "utils/rel.h"
#include "catalog/catname.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.55 1999/05/29 06:14:42 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.56 1999/07/15 15:19:52 momjian Exp $
*
* NOTES
* Outside modules can create a lock table and acquire/release
#include "storage/lock.h"
#include "utils/hsearch.h"
#include "utils/memutils.h"
-#include "utils/palloc.h"
#include "access/xact.h"
#include "access/transam.h"
#include "utils/trace.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/page/bufpage.c,v 1.23 1999/07/03 00:32:48 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/page/bufpage.c,v 1.24 1999/07/15 15:19:53 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "storage/item.h"
#include "storage/buf.h"
#include "storage/bufmgr.h"
-#include "utils/palloc.h"
#include "utils/memutils.h"
#include "storage/bufpage.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.46 1999/06/18 16:47:23 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.47 1999/07/15 15:19:54 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "storage/block.h"
#include "storage/fd.h"
#include "storage/smgr.h" /* where the declarations go */
-#include "utils/mcxt.h"
#include "utils/rel.h"
#undef DIAGNOSTIC
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgr.c,v 1.25 1999/07/14 01:19:54 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgr.c,v 1.26 1999/07/15 15:19:56 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "storage/block.h"
#include "storage/smgr.h"
#include "utils/rel.h"
-#include "utils/palloc.h"
-#include "utils/mcxt.h"
static void smgrshutdown(int dummy);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgrtype.c,v 1.12 1999/07/14 01:19:55 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgrtype.c,v 1.13 1999/07/15 15:19:56 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "utils/builtins.h" /* where the declarations go */
-#include "utils/palloc.h"
#include "storage/smgr.h"
-#include "utils/mcxt.h"
typedef struct smgrid
{
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/dest.c,v 1.31 1999/05/25 22:42:06 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/dest.c,v 1.32 1999/07/15 15:19:57 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "libpq/pqformat.h"
#include "access/printtup.h"
#include "utils/portal.h"
-#include "utils/palloc.h"
#include "executor/executor.h"
#include "tcop/dest.h"
#include "catalog/pg_type.h"
-#include "utils/mcxt.h"
#include "commands/async.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.24 1999/05/10 00:45:46 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.25 1999/07/15 15:19:59 momjian Exp $
*
* NOTES
* This cruft is the server side of PQfn.
#include "tcop/tcopdebug.h"
-#include "utils/palloc.h"
#include "fmgr.h"
#include "utils/builtins.h" /* for oideq */
#include "tcop/fastpath.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.119 1999/07/02 18:09:27 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.120 1999/07/15 15:19:59 momjian Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
#include "tcop/tcopdebug.h"
#include "tcop/tcopprot.h" /* where declarations for this file go */
#include "tcop/utility.h"
-#include "utils/mcxt.h"
#include "utils/rel.h"
#include "utils/ps_status.h"
#include "utils/temprel.h"
#include "nodes/relation.h"
#endif
-#ifdef NOT_USED
-#include "optimizer/xfunc.h"
-#endif
-
#ifdef NOT_USED
#include "nodes/plannodes.h"
#endif
if (!IsUnderPostmaster)
{
puts("\nPOSTGRES backend interactive interface ");
- puts("$Revision: 1.119 $ $Date: 1999/07/02 18:09:27 $\n");
+ puts("$Revision: 1.120 $ $Date: 1999/07/15 15:19:59 $\n");
}
/* ----------------
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/pquery.c,v 1.23 1999/05/25 16:11:41 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/pquery.c,v 1.24 1999/07/15 15:20:00 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "tcop/tcopdebug.h"
-#include "utils/palloc.h"
#include "nodes/nodes.h"
-#include "utils/mcxt.h"
#include "miscadmin.h"
#include "utils/portal.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.61 1999/05/25 16:11:43 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.62 1999/07/15 15:20:01 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "../backend/parser/parse.h"
#include "utils/builtins.h"
#include "utils/acl.h"
-#include "utils/palloc.h"
#include "rewrite/rewriteRemove.h"
#include "rewrite/rewriteDefine.h"
#include "tcop/tcopdebug.h"
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: tgRecipe.h,v 1.11 1999/05/25 22:42:09 momjian Exp $
+ * $Id: tgRecipe.h,v 1.12 1999/07/15 15:20:03 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "libpq/libpq.h"
#ifndef TIOGA_FRONTEND
#include "libpq/libpq-be.h"
-#include "utils/elog.h"
#include "utils/geo-decls.h"
#else
#include "libpq-fe.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.43 1999/05/25 16:11:50 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.44 1999/07/15 15:20:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "storage/fd.h"
#include "fmgr.h"
#include "utils/array.h"
-#include "utils/elog.h"
#include "libpq/libpq-fs.h"
#include "libpq/be-fsstubs.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayutils.c,v 1.7 1999/02/13 23:19:02 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayutils.c,v 1.8 1999/07/15 15:20:10 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
-#include "utils/array.h"
-
int
GetOffset(int n, int *dim, int *lb, int *indx)
{
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/bool.c,v 1.17 1999/07/14 01:19:56 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/bool.c,v 1.18 1999/07/15 15:20:11 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "utils/builtins.h" /* where the declarations go */
-#include "utils/palloc.h"
-#include "utils/mcxt.h"
/*****************************************************************************
* USER I/O ROUTINES *
* workings can be found in the book "Software Solutions in C" by
* Dale Schumacher, Academic Press, ISBN: 0-12-632360-7.
*
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.29 1999/07/14 01:19:57 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.30 1999/07/15 15:20:11 momjian Exp $
*/
#include
#include "miscadmin.h"
#include "utils/builtins.h"
#include "utils/cash.h"
-#include "utils/mcxt.h"
static const char *num_word(Cash value);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/char.c,v 1.23 1999/07/14 01:19:58 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/char.c,v 1.24 1999/07/15 15:20:12 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include /* for sprintf() */
#include
#include "postgres.h"
-#include "utils/palloc.h"
#include "utils/builtins.h" /* where the declarations go */
-#include "utils/mcxt.h"
/*****************************************************************************
* USER I/O ROUTINES *
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/date.c,v 1.33 1999/07/14 01:19:59 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/date.c,v 1.34 1999/07/15 15:20:13 momjian Exp $
*
* NOTES
* This code is actually (almost) unused.
#endif
#include "access/xact.h"
#include "utils/builtins.h" /* where function declarations go */
-#include "utils/palloc.h"
#include "utils/dt.h"
-#include "utils/mcxt.h"
#define INVALID_RELTIME_STR "Undefined RelTime"
#define INVALID_RELTIME_STR_LEN (sizeof(INVALID_RELTIME_STR)-1)
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.34 1999/07/14 01:19:59 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.35 1999/07/15 15:20:14 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "utils/nabstime.h"
#include "utils/datetime.h"
#include "access/xact.h"
-#include "utils/mcxt.h"
static int date2tm(DateADT dateVal, int *tzp, struct tm * tm, double *fsec, char **tzn);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/datum.c,v 1.13 1999/07/14 01:20:00 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/datum.c,v 1.14 1999/07/15 15:20:14 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "utils/datum.h"
#include "catalog/pg_type.h"
-#include "utils/palloc.h"
-#include "utils/mcxt.h"
/*-------------------------------------------------------------------------
* datumGetSize
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.73 1999/07/14 01:20:01 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.74 1999/07/15 15:20:14 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
#endif
#include "utils/builtins.h"
-#include "utils/mcxt.h"
static int DecodeDate(char *str, int fmask, int *tmask, struct tm * tm);
static int DecodeNumber(int flen, char *field,
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/filename.c,v 1.18 1999/07/14 01:20:02 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/filename.c,v 1.19 1999/07/15 15:20:15 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include
#include "utils/builtins.h" /* where function declarations go */
-#include "utils/mcxt.h"
char *
filename_in(char *file)
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.44 1999/07/14 01:20:03 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.45 1999/07/15 15:20:16 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#endif
#include "fmgr.h"
#include "utils/builtins.h" /* for ftod() prototype */
-#include "utils/palloc.h"
-#include "utils/mcxt.h"
#ifndef NAN
#define NAN (0.0/0.0)
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.42 1999/07/14 01:20:03 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.43 1999/07/15 15:20:16 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "utils/geo_decls.h"
-#include "utils/palloc.h"
-#include "utils/mcxt.h"
#ifndef PI
#define PI 3.1415926536
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_selfuncs.c,v 1.9 1999/07/14 01:20:04 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_selfuncs.c,v 1.10 1999/07/15 15:20:17 momjian Exp $
*
* XXX These are totally bogus.
*
#include "access/attnum.h"
#include "utils/geo_decls.h" /* where function declarations go */
-#include "utils/palloc.h"
#include "utils/builtins.h"
-#include "utils/mcxt.h"
float64
areasel(Oid opid,
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.22 1999/07/14 01:20:05 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.23 1999/07/15 15:20:17 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "fmgr.h"
#include "utils/builtins.h" /* where the declarations go */
-#include "utils/mcxt.h"
#ifndef SHRT_MAX
#define SHRT_MAX (0x7FFF)
#include
#include "postgres.h"
-#include "utils/palloc.h"
#include "utils/int8.h"
-#include "utils/mcxt.h"
#define MAXINT8LEN 25
*/
#include
#include "postgres.h" /* postgres system include file */
-#include "utils/palloc.h"
#include "utils/builtins.h" /* where the function declarations go */
#include "mb/pg_wchar.h"
-#include "utils/mcxt.h"
static int like(pg_wchar * text, pg_wchar * p);
}
-/* $Revision: 1.26 $
+/* $Revision: 1.27 $
** "like.c" A first attempt at a LIKE operator for Postgres95.
**
** Originally written by Rich $alz, mirror!rs, Wed Nov 26 19:03:17 EST 1986.
/*
* PostgreSQL type definitions for MAC addresses.
*
- * $Id: mac.c,v 1.9 1999/07/14 01:20:05 momjian Exp $
+ * $Id: mac.c,v 1.10 1999/07/15 15:20:18 momjian Exp $
*/
#include
#include
-#include
#include
#include
-#include "utils/mcxt.h"
manufacturer manufacturers[] = {
{0x00, 0x00, 0x0C, "Cisco"},
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nabstime.c,v 1.56 1999/07/14 01:20:05 momjian Exp $
+ * $Id: nabstime.c,v 1.57 1999/07/15 15:20:18 momjian Exp $
*
*/
#include
#endif
#include "utils/builtins.h"
#include "access/xact.h"
-#include "utils/mcxt.h"
static AbsoluteTime tm2abstime(struct tm * tm, int tz);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/name.c,v 1.19 1999/07/14 01:20:06 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/name.c,v 1.20 1999/07/15 15:20:18 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
#include "postgres.h"
#include "utils/builtins.h" /* where the declarations go */
-#include "utils/palloc.h" /* where the declarations go */
-#include "utils/mcxt.h"
/*****************************************************************************
* USER I/O ROUTINES (none) *
* is for IP V4 CIDR notation, but prepared for V6: just
* add the necessary bits where the comments indicate.
*
- * $Id: network.c,v 1.11 1999/07/14 01:20:06 momjian Exp $
+ * $Id: network.c,v 1.12 1999/07/15 15:20:18 momjian Exp $
* Jon Postel RIP 16 Oct 1998
*/
-#include
#include
#include
-#include "utils/mcxt.h"
static int v4bitncmp(unsigned int a1, unsigned int a2, int bits);
*
* 1998 Jan Wieck
*
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/numeric.c,v 1.17 1999/07/14 01:20:06 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/numeric.c,v 1.18 1999/07/15 15:20:18 momjian Exp $
*
* ----------
*/
#include "postgres.h"
#include "utils/builtins.h"
-#include "utils/palloc.h"
#include "utils/numeric.h"
-#include "utils/mcxt.h"
/* ----------
* Uncomment the following to enable compilation of dump_numeric()
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/oid.c,v 1.24 1999/07/14 01:20:06 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/oid.c,v 1.25 1999/07/15 15:20:19 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "utils/builtins.h" /* where function declarations go */
-#include "utils/mcxt.h"
/*****************************************************************************
* USER I/O ROUTINES *
/*
* Edmund Mergl
*
- * $Id: oracle_compat.c,v 1.19 1999/07/14 01:20:06 momjian Exp $
+ * $Id: oracle_compat.c,v 1.20 1999/07/15 15:20:19 momjian Exp $
*
*/
#include
#include "postgres.h"
-#include "utils/mcxt.h"
text *lower(text *string);
text *upper(text *string);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/regexp.c,v 1.23 1999/07/14 01:20:07 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/regexp.c,v 1.24 1999/07/15 15:20:19 momjian Exp $
*
* Alistair Crooks added the code for the regex caching
* agc - cached the regular expressions used - there's a good chance
#include
#include "utils/builtins.h" /* where the function declarations go */
-#include "utils/mcxt.h"
#if defined(DISABLE_XOPEN_NLS)
#undef _XOPEN_SOURCE
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/regproc.c,v 1.37 1999/05/25 16:12:17 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/regproc.c,v 1.38 1999/07/15 15:20:19 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "access/relscan.h"
#include "storage/bufmgr.h"
#include "fmgr.h"
-#include "utils/palloc.h"
#include "utils/syscache.h"
#include "catalog/catname.h"
* out of it's tuple
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.18 1999/06/02 11:52:28 wieck Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.19 1999/07/15 15:20:19 momjian Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
#include "executor/spi.h"
#include "commands/trigger.h"
-#include "utils/elog.h"
#include "utils/builtins.h"
#include "nodes/nodes.h"
#include "optimizer/clauses.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.30 1999/06/19 00:44:44 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.31 1999/07/15 15:20:19 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "fmgr.h"
#include "utils/builtins.h" /* for textout() prototype and where the
* declarations go */
-#include "utils/palloc.h"
#include "catalog/catname.h"
#include "utils/syscache.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/tid.c,v 1.7 1999/07/14 01:20:07 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/tid.c,v 1.8 1999/07/15 15:20:20 momjian Exp $
*
* NOTES
* input routine largely stolen from boxin().
#include "postgres.h"
#include "storage/bufpage.h"
-#include "utils/palloc.h"
#include "utils/builtins.h" /* where function declarations go */
-#include "utils/mcxt.h"
#define LDELIM '('
#define RDELIM ')'
#include "miscadmin.h"
#include "utils/builtins.h"
#include "access/xact.h"
-#include "utils/mcxt.h"
time_t
timestamp_in(const char *timestamp_str)
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.48 1999/07/04 04:56:00 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.49 1999/07/15 15:20:20 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "utils/array.h"
#include "utils/builtins.h"
#include "catalog/pg_type.h"
+#include "storage/bufpage.h"
+#include "utils/memutils.h"
#ifdef CYR_RECODE
char *convertstr(char *, int, int);
-
#endif
#include "mb/pg_wchar.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.49 1999/07/14 01:20:07 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.50 1999/07/15 15:20:20 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
#include "postgres.h"
-#include "utils/palloc.h"
#include "utils/builtins.h" /* where function declarations go */
-#include "utils/mcxt.h"
#include "mb/pg_wchar.h"
*
* IDENTIFICATION
*
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/version.c,v 1.7 1999/07/14 01:20:08 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/version.c,v 1.8 1999/07/15 15:20:20 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "version.h"
-#include "utils/mcxt.h"
text *version(void);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.43 1999/06/04 02:19:45 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.44 1999/07/15 15:20:21 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "utils/builtins.h"
#include "utils/portal.h"
#include "utils/catcache.h"
-#include "utils/elog.h"
-#include "utils/palloc.h"
-#include "utils/mcxt.h"
#include "utils/rel.h"
#include "storage/bufpage.h"
#include "access/valid.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/cache/lsyscache.c,v 1.27 1999/05/29 01:45:21 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/cache/lsyscache.c,v 1.28 1999/07/15 15:20:22 momjian Exp $
*
* NOTES
* Eventually, the index information should go through here, too.
#include "utils/lsyscache.h"
#include "access/tupmacs.h"
#include "utils/rel.h"
-#include "utils/palloc.h"
-#include "utils/elog.h"
#include "access/attnum.h"
#include "access/heapam.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.62 1999/05/25 16:12:23 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.63 1999/07/15 15:20:23 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "utils/builtins.h"
#include "utils/catcache.h"
#include "utils/hsearch.h"
-#include "utils/mcxt.h"
#include "utils/memutils.h"
#include "utils/rel.h"
#include "utils/relcache.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/temprel.c,v 1.6 1999/07/03 15:43:57 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/temprel.c,v 1.7 1999/07/15 15:20:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "miscadmin.h"
#include "nodes/pg_list.h"
-#include "utils/mcxt.h"
#include "utils/temprel.h"
#include "access/xact.h"
#include "access/htup.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/excid.c,v 1.6 1999/05/25 16:12:26 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/excid.c,v 1.7 1999/07/15 15:20:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
-#include "utils/excid.h"
-
/*****************************************************************************
* Generic Recoverable Exceptions *
*****************************************************************************/
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.26 1999/05/25 16:12:27 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.27 1999/07/15 15:20:30 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "config.h" /* for MAXPATHLEN */
#include "fmgr.h" /* generated by Gen_fmgrtab.sh */
#include "utils/dynamic_loader.h"
-#include "utils/elog.h"
#include "utils/builtins.h"
#include "access/heapam.h"
#include "nodes/pg_list.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/fmgr/fmgr.c,v 1.28 1999/05/25 16:12:28 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/fmgr/fmgr.c,v 1.29 1999/07/15 15:20:30 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/params.h"
#include "utils/builtins.h"
-#include "utils/elog.h"
#include "nodes/parsenodes.h"
#include "commands/trigger.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/hash/dynahash.c,v 1.23 1999/05/31 17:01:52 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/hash/dynahash.c,v 1.24 1999/07/15 15:20:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "utils/dynahash.h"
#include "utils/hsearch.h"
#ifndef FRONTEND
-#include "utils/mcxt.h"
#endif /* !FRONTEND */
-#include "utils/palloc.h"
#include "utils/memutils.h"
/*
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/init/Attic/enbl.c,v 1.7 1999/05/25 16:12:33 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/init/Attic/enbl.c,v 1.8 1999/07/15 15:20:32 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
-#include "utils/module.h" /* where the declarations go */
/*
* BypassEnable
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.30 1999/05/25 16:12:34 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.31 1999/07/15 15:20:34 momjian Exp $
*
* NOTES
* Globals used all over the place should be declared here and not
#include "storage/sinval.h"
#include "storage/sinvaladt.h"
#include "storage/lmgr.h"
-#include "utils/elog.h"
#include "libpq/pqcomm.h"
#include "catalog/catname.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.29 1999/05/25 16:12:35 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.30 1999/07/15 15:20:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "utils/portal.h" /* for EnablePortalManager, etc. */
#include "utils/exc.h" /* for EnableExceptionHandling, etc. */
-#include "utils/mcxt.h" /* for EnableMemoryContext, etc. */
-#include "utils/elog.h"
#include "utils/builtins.h"
#include "miscadmin.h" /* where the declarations go */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.40 1999/05/25 16:12:36 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.41 1999/07/15 15:20:34 momjian Exp $
*
* NOTES
* InitPostgres() is the function called from PostgresMain
#include "utils/exc.h" /* for EnableExceptionHandling, etc. */
#include "fmgr.h" /* for EnableDynamicFunctionManager, etc. */
-#include "utils/elog.h"
-#include "utils/palloc.h"
-#include "utils/mcxt.h" /* for EnableMemoryContext, etc. */
#include "utils/inval.h"
#include "catalog/catname.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/misc/Attic/database.c,v 1.24 1999/05/25 16:12:47 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/misc/Attic/database.c,v 1.25 1999/07/15 15:20:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "access/heapam.h"
+#include "access/transam.h"
#include "access/xact.h"
#include "catalog/catname.h"
#include "catalog/pg_database.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/mcxt.c,v 1.14 1999/05/25 16:12:53 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/mcxt.c,v 1.15 1999/07/15 15:20:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/memnodes.h"
#include "nodes/nodes.h"
-#include "utils/mcxt.h"
-#include "utils/elog.h"
-#include "utils/palloc.h"
#undef MemoryContextAlloc
#undef MemoryContextFree
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/Attic/palloc.c,v 1.12 1999/05/25 16:12:54 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/Attic/palloc.c,v 1.13 1999/07/15 15:20:38 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
-#include "utils/mcxt.h"
-#include "utils/elog.h"
-#include "utils/palloc.h"
#include "nodes/memnodes.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/portalmem.c,v 1.23 1999/06/19 05:00:29 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/portalmem.c,v 1.24 1999/07/15 15:20:39 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "lib/hasht.h"
#include "utils/module.h"
#include "utils/excid.h" /* for Unimplemented */
-#include "utils/mcxt.h"
#include "utils/hsearch.h"
#include "nodes/memnodes.h"
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/time/tqual.c,v 1.29 1999/05/25 16:13:02 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/time/tqual.c,v 1.30 1999/07/15 15:20:41 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "access/xact.h"
#include "storage/bufmgr.h"
#include "access/transam.h"
-#include "utils/elog.h"
-#include "utils/palloc.h"
#include "utils/tqual.h"
extern bool PostgresIsInitialized;
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.115 1999/06/03 04:01:16 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.116 1999/07/15 15:20:44 momjian Exp $
*
*
#include "catalog/pg_language.h"
#include "catalog/pg_index.h"
#include "catalog/pg_trigger.h"
+#include "access/attnum.h"
+
#include "libpq-fe.h"
#ifndef HAVE_STRDUP
#include "strdup.h"
-#include
-#include
-#include
-#include
-
-#include
/*
** You can have as many strategies as you please in GiSTs, as
#ifndef GISTSCAN_H
-#include
-#include
-#include
extern IndexScanDesc gistbeginscan(Relation r, bool fromEnd,
uint16 nkeys, ScanKey key);
#ifndef GISTSTRAT_H
#define GISTSTRAT_H
#include
extern StrategyNumber RelationGetGISTStrategy(Relation r,
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: hash.h,v 1.24 1999/05/25 22:42:30 momjian Exp $
+ * $Id: hash.h,v 1.25 1999/07/15 15:20:53 momjian Exp $
*
* NOTES
* modeled after Margo Seltzer's hash implementation for unix.
-#include
#include
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: heapam.h,v 1.43 1999/07/10 22:06:26 tgl Exp $
+ * $Id: heapam.h,v 1.44 1999/07/15 15:20:53 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef HEAPAM_H
#define HEAPAM_H
+#include
#include "access/tupmacs.h"
#include "access/htup.h"
#include "access/relscan.h"
#include "storage/block.h"
#include "utils/rel.h"
#include "utils/tqual.h"
-#include
/* ----------------------------------------------------------------
* heap access method statistics
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: hio.h,v 1.11 1999/05/25 16:13:29 momjian Exp $
+ * $Id: hio.h,v 1.12 1999/07/15 15:20:54 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define HIO_H
-#include
-
extern void RelationPutHeapTuple(Relation relation, Buffer buffer,
HeapTuple tuple);
-/*-------------------------------------------------------------------------
+ /*-------------------------------------------------------------------------
*
* htup.h
* POSTGRES heap tuple definitions.
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: htup.h,v 1.22 1999/07/12 13:32:38 momjian Exp $
+ * $Id: htup.h,v 1.23 1999/07/15 15:20:54 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef HTUP_H
#define HTUP_H
-#include
#include
-#include
-#include
#define MinHeapTupleBitmapSize 32 /* 8 * 4 */
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: istrat.h,v 1.13 1999/05/25 16:13:32 momjian Exp $
+ * $Id: istrat.h,v 1.14 1999/07/15 15:20:54 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define ISTRAT_H
#include
/*
* StrategyNumberIsValid
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: itup.h,v 1.17 1999/02/13 23:20:55 momjian Exp $
+ * $Id: itup.h,v 1.18 1999/07/15 15:20:54 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
-#include
#define MaxIndexAttributeNumber 7
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nbtree.h,v 1.27 1999/05/25 22:04:55 momjian Exp $
+ * $Id: nbtree.h,v 1.28 1999/07/15 15:20:55 momjian Exp $
*
*-------------------------------------------------------------------------
*/
-#include
-#include
-#include /* don't remove, required by
- * BT_READ/BT_WRITE */
-#include
/*
* BTPageOpaqueData -- At the end of every page, we store a pointer
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: relscan.h,v 1.15 1999/05/25 16:13:33 momjian Exp $
+ * $Id: relscan.h,v 1.16 1999/07/15 15:20:55 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef RELSCAN_H
#define RELSCAN_H
-#include
-#include
#include
typedef ItemPointerData MarkData;
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: rtree.h,v 1.14 1999/02/13 23:20:57 momjian Exp $
+ * $Id: rtree.h,v 1.15 1999/07/15 15:20:55 momjian Exp $
*
*-------------------------------------------------------------------------
*/
-#include
-#include
/* see rtstrat.c for what all this is about */
#define RTNStrategies 8
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: rtstrat.h,v 1.9 1999/02/13 23:20:58 momjian Exp $
+ * $Id: rtstrat.h,v 1.10 1999/07/15 15:20:55 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define RTSTRAT_H
#include
extern RegProcedure RTMapOperator(Relation r, AttrNumber attnum,
RegProcedure proc);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: tupmacs.h,v 1.10 1999/05/25 16:13:36 momjian Exp $
+ * $Id: tupmacs.h,v 1.11 1999/07/15 15:20:56 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef TUPMACS_H
#define TUPMACS_H
+#include "utils/memutils.h"
+
/*
* check to see if the ATT'th bit of an array of 8-bit bytes is set.
*/
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: xact.h,v 1.20 1999/02/13 23:21:00 momjian Exp $
+ * $Id: xact.h,v 1.21 1999/07/15 15:20:56 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef XACT_H
#define XACT_H
#include
/* ----------------
* transaction state structure
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: index.h,v 1.16 1999/05/25 16:13:40 momjian Exp $
+ * $Id: index.h,v 1.17 1999/07/15 15:20:58 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define INDEX_H
#include
-#include
extern Form_pg_am AccessMethodObjectIdGetForm(Oid accessMethodObjectId);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: indexing.h,v 1.19 1999/02/13 23:21:03 momjian Exp $
+ * $Id: indexing.h,v 1.20 1999/07/15 15:20:59 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define INDEXING_H
-#include
/*
* Some definitions for indices on pg_attribute
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: dbcommands.h,v 1.9 1999/07/14 01:20:12 momjian Exp $
+ * $Id: dbcommands.h,v 1.10 1999/07/15 15:21:01 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef DBCOMMANDS_H
#define DBCOMMANDS_H
+#include
#include "tcop/dest.h"
+
/*
* Originally from tmp/daemon.h. The functions declared in daemon.h does not
* exist; hence removed. -- AY 7/29/94
#ifndef TRIGGER_H
#define TRIGGER_H
-#include "access/tupdesc.h"
-#include "access/htup.h"
#include "nodes/parsenodes.h"
#include "nodes/execnodes.h"
-#include "utils/rel.h"
typedef uint32 TriggerEvent;
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: vacuum.h,v 1.21 1999/07/14 01:20:15 momjian Exp $
+ * $Id: vacuum.h,v 1.22 1999/07/15 15:21:03 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "catalog/pg_index.h"
#include "catalog/pg_attribute.h"
#include "nodes/pg_list.h"
-#include "storage/block.h"
#include "storage/itemptr.h"
-#include "storage/off.h"
typedef struct VAttListData
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: execFlatten.h,v 1.8 1999/02/13 23:21:22 momjian Exp $
+ * $Id: execFlatten.h,v 1.9 1999/07/15 15:21:04 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/relation.h"
#include "nodes/execnodes.h"
-#include "nodes/parsenodes.h"
extern Datum ExecEvalIter(Iter *iterNode, ExprContext *econtext, bool *resultIsNull, bool *iterIsDone);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: execdebug.h,v 1.9 1999/07/14 01:20:16 momjian Exp $
+ * $Id: execdebug.h,v 1.10 1999/07/15 15:21:06 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef EXECDEBUG_H
#define EXECDEBUG_H
+#include
+
/* ----------------------------------------------------------------
* debugging defines.
*
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: executor.h,v 1.34 1999/06/17 15:15:53 momjian Exp $
+ * $Id: executor.h,v 1.35 1999/07/15 15:21:06 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef EXECUTOR_H
#define EXECUTOR_H
-#include
-#include
#include
#include
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: functions.h,v 1.9 1999/02/13 23:21:24 momjian Exp $
+ * $Id: functions.h,v 1.10 1999/07/15 15:21:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef FUNCTIONS_H
#define FUNCTIONS_H
-#include "access/tupdesc.h"
#include "nodes/parsenodes.h"
-#include "nodes/primnodes.h"
#include "utils/syscache.h"
extern Datum ProjectAttribute(TupleDesc TD, TargetEntry *tlist,
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: hashjoin.h,v 1.13 1999/05/25 22:42:45 momjian Exp $
+ * $Id: hashjoin.h,v 1.14 1999/07/15 15:21:08 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define HASHJOIN_H
#include "access/htup.h"
-#include "storage/fd.h"
-#include "utils/mcxt.h"
/* ----------------------------------------------------------------
* hash-join hash table structures
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeAgg.h,v 1.9 1999/02/13 23:21:24 momjian Exp $
+ * $Id: nodeAgg.h,v 1.10 1999/07/15 15:21:09 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODEAGG_H
#define NODEAGG_H
-#include "executor/tuptable.h"
-#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern TupleTableSlot *ExecAgg(Agg *node);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeAppend.h,v 1.10 1999/02/13 23:21:25 momjian Exp $
+ * $Id: nodeAppend.h,v 1.11 1999/07/15 15:21:10 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODEAPPEND_H
#define NODEAPPEND_H
-#include "executor/tuptable.h"
-#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern bool ExecInitAppend(Append *node, EState *estate, Plan *parent);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeGroup.h,v 1.11 1999/07/13 21:17:37 momjian Exp $
+ * $Id: nodeGroup.h,v 1.12 1999/07/15 15:21:11 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODEGROUP_H
#define NODEGROUP_H
-#include "executor/tuptable.h"
-#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern TupleTableSlot *ExecGroup(Group *node);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeHash.h,v 1.13 1999/05/25 16:13:55 momjian Exp $
+ * $Id: nodeHash.h,v 1.14 1999/07/15 15:21:11 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODEHASH_H
#define NODEHASH_H
-#include "executor/hashjoin.h"
-#include "executor/tuptable.h"
-#include "nodes/execnodes.h"
-#include "nodes/pg_list.h"
#include "nodes/plannodes.h"
-#include "utils/syscache.h"
extern TupleTableSlot *ExecHash(Hash *node);
extern bool ExecInitHash(Hash *node, EState *estate, Plan *parent);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeHashjoin.h,v 1.14 1999/05/25 22:42:46 momjian Exp $
+ * $Id: nodeHashjoin.h,v 1.15 1999/07/15 15:21:12 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define NODEHASHJOIN_H
#include "nodes/plannodes.h"
-#include "nodes/execnodes.h"
-#include "utils/syscache.h"
extern TupleTableSlot *ExecHashJoin(HashJoin *node);
extern bool ExecInitHashJoin(HashJoin *node, EState *estate, Plan *parent);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeIndexscan.h,v 1.8 1999/02/13 23:21:26 momjian Exp $
+ * $Id: nodeIndexscan.h,v 1.9 1999/07/15 15:21:12 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODEINDEXSCAN_H
#define NODEINDEXSCAN_H
-#include "executor/tuptable.h"
-#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern TupleTableSlot *ExecIndexScan(IndexScan *node);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeMaterial.h,v 1.10 1999/02/21 03:49:44 scrappy Exp $
+ * $Id: nodeMaterial.h,v 1.11 1999/07/15 15:21:13 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODEMATERIAL_H
#define NODEMATERIAL_H
-#include "executor/tuptable.h"
-#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern TupleTableSlot *ExecMaterial(Material *node);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeMergejoin.h,v 1.10 1999/02/13 23:21:26 momjian Exp $
+ * $Id: nodeMergejoin.h,v 1.11 1999/07/15 15:21:13 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODEMERGEJOIN_H
#define NODEMERGEJOIN_H
-#include "executor/tuptable.h"
-#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern TupleTableSlot *ExecMergeJoin(MergeJoin *node);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeNestloop.h,v 1.10 1999/05/25 16:13:56 momjian Exp $
+ * $Id: nodeNestloop.h,v 1.11 1999/07/15 15:21:13 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODENESTLOOP_H
#define NODENESTLOOP_H
-#include "executor/tuptable.h"
-#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern TupleTableSlot *ExecNestLoop(NestLoop *node, Plan *parent);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeResult.h,v 1.8 1999/02/13 23:21:27 momjian Exp $
+ * $Id: nodeResult.h,v 1.9 1999/07/15 15:21:14 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODERESULT_H
#define NODERESULT_H
-#include "executor/tuptable.h"
-#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern TupleTableSlot *ExecResult(Result *node);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeSeqscan.h,v 1.8 1999/02/13 23:21:28 momjian Exp $
+ * $Id: nodeSeqscan.h,v 1.9 1999/07/15 15:21:14 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODESEQSCAN_H
#define NODESEQSCAN_H
-#include "executor/tuptable.h"
-#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern TupleTableSlot *ExecSeqScan(SeqScan *node);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeSort.h,v 1.8 1999/02/13 23:21:28 momjian Exp $
+ * $Id: nodeSort.h,v 1.9 1999/07/15 15:21:14 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODESORT_H
#define NODESORT_H
-#include "executor/tuptable.h"
-#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern TupleTableSlot *ExecSort(Sort *node);
#ifndef NODESUBPLAN_H
#define NODESUBPLAN_H
-#include "executor/tuptable.h"
-#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern Datum ExecSubPlan(SubPlan *node, List *pvar, ExprContext *econtext);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeUnique.h,v 1.8 1999/02/13 23:21:29 momjian Exp $
+ * $Id: nodeUnique.h,v 1.9 1999/07/15 15:21:14 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODEUNIQUE_H
#define NODEUNIQUE_H
-#include "executor/tuptable.h"
-#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern TupleTableSlot *ExecUnique(Unique *node);
#include
#include "postgres.h"
+
+/*
+ * These are not needed by this file, but used by other programs
+ * using SPI
+ */
#include "nodes/primnodes.h"
#include "nodes/relation.h"
#include "nodes/execnodes.h"
#include "nodes/params.h"
#include "utils/fcache.h"
#include "utils/datum.h"
-#include "utils/elog.h"
-#include "utils/palloc.h"
#include "utils/syscache.h"
-#include "utils/mcxt.h"
#include "utils/portal.h"
#include "utils/builtins.h"
#include "catalog/pg_language.h"
* spi.c
* Server Programming Interface private declarations
*
- * $Header: /cvsroot/pgsql/src/include/executor/spi_priv.h,v 1.5 1999/07/14 01:20:17 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/include/executor/spi_priv.h,v 1.6 1999/07/15 15:21:14 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define SPI_PRIV_H
#include "executor/spi.h"
-#include "catalog/pg_type.h"
-#include "access/printtup.h"
typedef struct
{
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: tuptable.h,v 1.12 1999/05/25 16:13:58 momjian Exp $
+ * $Id: tuptable.h,v 1.13 1999/07/15 15:21:14 momjian Exp $
*
* NOTES
* The tuple table interface is getting pretty ugly.
#ifndef TUPTABLE_H
#define TUPTABLE_H
-#include
/* ----------------
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: libpq-be.h,v 1.14 1999/02/13 23:21:35 momjian Exp $
+ * $Id: libpq-be.h,v 1.15 1999/07/15 15:21:15 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
#include
-#include "libpq/pqcomm.h"
#include "libpq/hba.h"
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: libpq.h,v 1.31 1999/07/07 17:17:50 momjian Exp $
+ * $Id: libpq.h,v 1.32 1999/07/15 15:21:15 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "libpq/libpq-be.h"
#include "tcop/dest.h"
-
+#include "utils/exc.h"
/* ----------------
* PQArgBlock
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: pqformat.h,v 1.4 1999/05/25 16:14:01 momjian Exp $
+ * $Id: pqformat.h,v 1.5 1999/07/15 15:21:16 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PQFORMAT_H
#define PQFORMAT_H
-#include "postgres.h"
#include "lib/stringinfo.h"
#define pq_beginmessage(buf) initStringInfo(buf)
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: execnodes.h,v 1.30 1999/05/25 22:42:54 momjian Exp $
+ * $Id: execnodes.h,v 1.31 1999/07/15 15:21:16 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef EXECNODES_H
#define EXECNODES_H
-#include
#include
#include
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: makefuncs.h,v 1.18 1999/05/25 16:14:08 momjian Exp $
+ * $Id: makefuncs.h,v 1.19 1999/07/15 15:21:16 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef MAKEFUNC_H
#define MAKEFUNC_H
-#include
#include
-#include
extern Oper *makeOper(Oid opno,
Oid opid,
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeFuncs.h,v 1.8 1999/02/13 23:21:38 momjian Exp $
+ * $Id: nodeFuncs.h,v 1.9 1999/07/15 15:21:17 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODEFUNCS_H
#define NODEFUNCS_H
-#include
#include
extern bool single_node(Node *node);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodes.h,v 1.49 1999/05/26 12:56:33 momjian Exp $
+ * $Id: nodes.h,v 1.50 1999/07/15 15:21:17 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*/
extern Node *newNode(Size size, NodeTag tag);
-/*
- * nodes/{outfuncs.c,print.c}
- */
-#define nodeDisplay pprint
-
extern char *nodeToString(void *obj);
-extern void print(void *obj);
/*
* nodes/{readfuncs.c,read.c}
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: print.h,v 1.10 1999/02/13 23:21:41 momjian Exp $
+ * $Id: print.h,v 1.11 1999/07/15 15:21:18 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PRINT_H
#define PRINT_H
-#include "nodes/nodes.h"
-#include "nodes/plannodes.h"
#include "nodes/parsenodes.h"
-#include "nodes/relation.h"
-#include "executor/tuptable.h"
+#include "nodes/plannodes.h"
+
+/*
+ * nodes/{outfuncs.c,print.c}
+ */
+#define nodeDisplay pprint
extern void print(void *obj);
extern void pprint(void *obj);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: relation.h,v 1.32 1999/05/25 22:43:01 momjian Exp $
+ * $Id: relation.h,v 1.33 1999/07/15 15:21:18 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define RELATION_H
#include
-#include
/*
* Relids
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: xfunc.h,v 1.18 1999/05/25 22:43:14 momjian Exp $
+ * $Id: xfunc.h,v 1.1 1999/07/15 15:21:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern int XfuncMode; /* defined in tcop/postgres.c */
-/* defaults for function attributes used for expensive function calculations */
-#define BYTE_PCT 100
-#define PERBYTE_CPU 0
-#define PERCALL_CPU 0
-#define OUTIN_RATIO 100
-
/* default width assumed for variable length attributes */
#define VARLEN_DEFAULT 128;
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: clauses.h,v 1.19 1999/06/19 03:41:44 tgl Exp $
+ * $Id: clauses.h,v 1.20 1999/07/15 15:21:19 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef CLAUSES_H
#define CLAUSES_H
-#include
#include
extern Expr *make_clause(int type, Node *oper, List *args);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: cost.h,v 1.20 1999/05/25 22:43:04 momjian Exp $
+ * $Id: cost.h,v 1.21 1999/07/15 15:21:20 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef COST_H
#define COST_H
-#include "nodes/nodes.h"
-#include "nodes/parsenodes.h"
-#include "nodes/pg_list.h"
#include "nodes/relation.h"
+/* defaults for function attributes used for expensive function calculations */
+#define BYTE_PCT 100
+#define PERBYTE_CPU 0
+#define PERCALL_CPU 0
+#define OUTIN_RATIO 100
+
/*
* prototypes for costsize.c
* routines to compute costs and sizes
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo.h,v 1.16 1999/05/25 22:43:05 momjian Exp $
+ * $Id: geqo.h,v 1.17 1999/07/15 15:21:20 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef GEQO_H
#define GEQO_H
-#include "nodes/nodes.h"
-#include "nodes/parsenodes.h"
#include "nodes/relation.h"
#include "optimizer/geqo_gene.h"
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo_gene.h,v 1.7 1999/02/13 23:21:45 momjian Exp $
+ * $Id: geqo_gene.h,v 1.8 1999/07/15 15:21:20 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define GEQO_GENE_H
#include "nodes/nodes.h"
-#include "nodes/relation.h"
-#include "optimizer/geqo_gene.h"
/* we presume that int instead of Relid
is o.k. for Gene; so don't change it! */
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo_misc.h,v 1.11 1999/05/25 22:43:07 momjian Exp $
+ * $Id: geqo_misc.h,v 1.12 1999/07/15 15:21:20 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
-#include "nodes/parsenodes.h"
-#include "optimizer/geqo_gene.h"
#include "optimizer/geqo_recombination.h"
+#include "nodes/relation.h"
extern void print_pool(FILE *fp, Pool *pool, int start, int stop);
extern void print_gen(FILE *fp, Pool *pool, int generation);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo_pool.h,v 1.7 1999/02/13 23:21:47 momjian Exp $
+ * $Id: geqo_pool.h,v 1.8 1999/07/15 15:21:21 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define GEQO_POOL_H
#include "optimizer/geqo_gene.h"
+#include "nodes/parsenodes.h"
extern Pool *alloc_pool(int pool_size, int string_length);
extern void free_pool(Pool *pool);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: internal.h,v 1.21 1999/07/07 09:27:28 momjian Exp $
+ * $Id: internal.h,v 1.22 1999/07/15 15:21:21 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef INTERNAL_H
#define INTERNAL_H
+#include "catalog/pg_index.h"
+
/*
* ---------- SHARED MACROS
*
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: joininfo.h,v 1.12 1999/05/25 22:43:08 momjian Exp $
+ * $Id: joininfo.h,v 1.13 1999/07/15 15:21:22 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef JOININFO_H
#define JOININFO_H
-#include "nodes/nodes.h"
#include "nodes/relation.h"
-#include "nodes/primnodes.h"
extern JoinInfo *joininfo_member(List *join_relids, List *joininfo_list);
extern JoinInfo *find_joininfo_node(RelOptInfo *this_rel, List *join_relids);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: keys.h,v 1.15 1999/05/25 22:43:09 momjian Exp $
+ * $Id: keys.h,v 1.16 1999/07/15 15:21:22 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef KEYS_H
#define KEYS_H
-#include "nodes/nodes.h"
#include "nodes/relation.h"
extern bool match_indexkey_operand(int indexkey, Var *operand, RelOptInfo *rel);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: pathnode.h,v 1.17 1999/05/25 22:43:10 momjian Exp $
+ * $Id: pathnode.h,v 1.18 1999/07/15 15:21:22 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PATHNODE_H
#define PATHNODE_H
-#include "nodes/nodes.h"
#include "nodes/relation.h"
-#include "nodes/parsenodes.h"
/*
* prototypes for pathnode.c
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: paths.h,v 1.30 1999/05/26 12:56:35 momjian Exp $
+ * $Id: paths.h,v 1.31 1999/07/15 15:21:22 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PATHS_H
#define PATHS_H
-#include "nodes/nodes.h"
-#include "nodes/parsenodes.h"
#include "nodes/relation.h"
/*
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: planmain.h,v 1.28 1999/06/06 17:38:09 tgl Exp $
+ * $Id: planmain.h,v 1.29 1999/07/15 15:21:22 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PLANMAIN_H
#define PLANMAIN_H
-#include "nodes/nodes.h"
#include "nodes/plannodes.h"
-#include "nodes/parsenodes.h"
#include "nodes/relation.h"
/*
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: planner.h,v 1.11 1999/05/13 07:29:11 tgl Exp $
+ * $Id: planner.h,v 1.12 1999/07/15 15:21:23 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "nodes/parsenodes.h"
#include "nodes/plannodes.h"
-#include "parser/parse_node.h"
extern Plan *planner(Query *parse);
extern Plan *union_planner(Query *parse);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: restrictinfo.h,v 1.4 1999/05/25 22:43:12 momjian Exp $
+ * $Id: restrictinfo.h,v 1.5 1999/07/15 15:21:23 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef RESTRICTINFO_H
#define RESTRICTINFO_H
-#include "nodes/pg_list.h"
#include "nodes/relation.h"
extern bool valid_or_clause(RestrictInfo *restrictinfo);
#ifndef SUBSELECT_H
#define SUBSELECT_H
-#include "nodes/pg_list.h"
#include "nodes/plannodes.h"
extern int PlannerQueryLevel; /* level of current query */
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: tlist.h,v 1.18 1999/05/25 22:43:13 momjian Exp $
+ * $Id: tlist.h,v 1.19 1999/07/15 15:21:23 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef TLIST_H
#define TLIST_H
-#include "nodes/nodes.h"
-#include "nodes/parsenodes.h"
#include "nodes/relation.h"
extern TargetEntry *tlistentry_member(Var *var, List *targetlist);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: var.h,v 1.7 1999/02/13 23:21:54 momjian Exp $
+ * $Id: var.h,v 1.8 1999/07/15 15:21:23 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef VAR_H
#define VAR_H
-#include "nodes/nodes.h"
#include "nodes/primnodes.h"
extern List *pull_varnos(Node *me);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_agg.h,v 1.10 1999/05/25 22:43:16 momjian Exp $
+ * $Id: parse_agg.h,v 1.11 1999/07/15 15:21:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSE_AGG_H
#define PARSE_AGG_H
-#include
-#include
-#include
extern void AddAggToParseState(ParseState *pstate, Aggref *aggref);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_clause.h,v 1.9 1999/05/26 12:56:41 momjian Exp $
+ * $Id: parse_clause.h,v 1.10 1999/07/15 15:21:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSE_CLAUSE_H
#define PARSE_CLAUSE_H
-#include
-#include
-#include
-#include
extern void makeRangeTable(ParseState *pstate, char *relname, List *frmList, Node **qual);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_coerce.h,v 1.13 1999/07/14 01:20:25 momjian Exp $
+ * $Id: parse_coerce.h,v 1.14 1999/07/15 15:21:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSE_COERCE_H
#define PARSE_COERCE_H
-#include "nodes/pg_list.h"
#include "parser/parse_node.h"
+#include "catalog/pg_type.h"
typedef enum CATEGORY
{
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_expr.h,v 1.11 1999/05/26 12:56:41 momjian Exp $
+ * $Id: parse_expr.h,v 1.12 1999/07/15 15:21:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSE_EXPR_H
#define PARSE_EXPR_H
-#include
-#include
-#include
+#include "parser/parse_type.h"
extern Node *transformExpr(ParseState *pstate, Node *expr, int precedence);
extern Oid exprType(Node *expr);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_func.h,v 1.16 1999/06/17 22:21:40 tgl Exp $
+ * $Id: parse_func.h,v 1.17 1999/07/15 15:21:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSER_FUNC_H
#define PARSER_FUNC_H
-#include
-#include
-#include
-#include
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_node.h,v 1.12 1999/05/13 07:29:19 tgl Exp $
+ * $Id: parse_node.h,v 1.13 1999/07/15 15:21:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSE_NODE_H
#define PARSE_NODE_H
-#include
-#include
-#include
#include
#include
/* state information used during parse analysis */
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_oper.h,v 1.7 1999/02/13 23:21:57 momjian Exp $
+ * $Id: parse_oper.h,v 1.8 1999/07/15 15:21:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSE_OPER_H
#define PARSE_OPER_H
+#include "access/htup.h"
typedef HeapTuple Operator;
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_relation.h,v 1.9 1999/02/13 23:21:57 momjian Exp $
+ * $Id: parse_relation.h,v 1.10 1999/07/15 15:21:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSE_QUERY_H
#define PARSE_RANGE_H
-#include
-#include
-#include
-#include
-#include
extern RangeTblEntry *refnameRangeTableEntry(ParseState *pstate, char *refname);
extern int refnameRangeTablePosn(ParseState *pstate,
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_target.h,v 1.12 1999/05/17 17:03:46 momjian Exp $
+ * $Id: parse_target.h,v 1.13 1999/07/15 15:21:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSE_TARGET_H
#define PARSE_TARGET_H
-#include
-#include
-#include
-#include
#define EXPR_COLUMN_FIRST 1
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parsetree.h,v 1.6 1999/02/13 23:21:57 momjian Exp $
+ * $Id: parsetree.h,v 1.7 1999/07/15 15:21:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PARSETREE_H
#define PARSETREE_H /* include once only */
+#include "nodes/parsenodes.h"
+#include "nodes/pg_list.h"
+
/* ----------------
* need pg_list.h for definitions of CAR(), etc. macros
* ----------------
*
* Copyright (c) 1995, Regents of the University of California
*
- * $Id: postgres.h,v 1.23 1999/06/10 22:59:22 momjian Exp $
+ * $Id: postgres.h,v 1.24 1999/07/15 15:20:47 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "config.h"
#endif
#include "c.h"
-#include "utils/elog.h"
#include "utils/palloc.h"
+#include "utils/mcxt.h"
+#include "utils/elog.h"
/* ----------------------------------------------------------------
* Section 1: simple type definitions
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: locks.h,v 1.11 1999/02/13 23:21:59 momjian Exp $
+ * $Id: locks.h,v 1.12 1999/07/15 15:21:29 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef LOCKS_H
#define LOCKS_H
-#include "nodes/nodes.h"
#include "nodes/parsenodes.h"
#include "rewrite/prs2lock.h"
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: rewriteHandler.h,v 1.10 1999/05/26 12:56:48 momjian Exp $
+ * $Id: rewriteHandler.h,v 1.11 1999/07/15 15:21:30 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef REWRITEHANDLER_H
#define REWRITEHANDLER_H
-#include "nodes/nodes.h"
#include "nodes/parsenodes.h"
struct _rewrite_meta_knowledge
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: rewriteManip.h,v 1.16 1999/05/26 12:56:50 momjian Exp $
+ * $Id: rewriteManip.h,v 1.17 1999/07/15 15:21:30 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef REWRITEMANIP_H
#define REWRITEMANIP_H
-#include "nodes/nodes.h"
-#include "nodes/parsenodes.h"
#include "rewrite/rewriteHandler.h"
/* RewriteManip.c */
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: bufmgr.h,v 1.26 1999/05/25 16:14:39 momjian Exp $
+ * $Id: bufmgr.h,v 1.27 1999/07/15 15:21:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*/
#define BufferDescriptorGetBuffer(bdesc) ((bdesc)->buf_id + 1)
-/*
- * BufferIsPinned
- * True iff the buffer is pinned (and therefore valid)
- *
- * Note:
- * Smenatics are identical to BufferIsValid
- * XXX - need to remove either one eventually.
- */
-#define BufferIsPinned BufferIsValid
-
-
extern int ShowPinTrace;
/*
) \
)
+/*
+ * BufferIsPinned
+ * True iff the buffer is pinned (and therefore valid)
+ *
+ * Note:
+ * Smenatics are identical to BufferIsValid
+ * XXX - need to remove either one eventually.
+ */
+#define BufferIsPinned BufferIsValid
+
+
#define IncrBufferRefCount(buffer) \
( \
BufferIsLocal(buffer) ? \
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: bufpage.h,v 1.23 1999/07/03 00:32:59 momjian Exp $
+ * $Id: bufpage.h,v 1.24 1999/07/15 15:21:32 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
#include
#include
+#include
/*
* a postgres disk page is an abstraction layered on top of a postgres
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: lmgr.h,v 1.20 1999/05/25 22:43:26 momjian Exp $
+ * $Id: lmgr.h,v 1.21 1999/07/15 15:21:32 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
#include
-#include
#define AccessShareLock 1 /* SELECT */
#define RowShareLock 2 /* SELECT FOR UPDATE */
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: off.h,v 1.7 1999/05/25 16:14:43 momjian Exp $
+ * $Id: off.h,v 1.8 1999/07/15 15:21:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef OFF_H
#define OFF_H
+#include "storage/itemid.h"
/*
* OffsetNumber:
*
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: pos.h,v 1.7 1999/05/25 16:14:44 momjian Exp $
+ * $Id: pos.h,v 1.8 1999/07/15 15:21:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef POS_H
#define POS_H
+#include "storage/off.h"
+
/*
* a 'position' used to be
in postgres. this has
* been changed to just as the notion of having multiple pages
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: dest.h,v 1.20 1999/05/25 22:43:29 momjian Exp $
+ * $Id: dest.h,v 1.21 1999/07/15 15:21:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define DEST_H
/* ----------------
* CommandDest is a simplistic means of identifying the desired
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: acl.h,v 1.20 1999/07/09 03:28:53 momjian Exp $
+ * $Id: acl.h,v 1.21 1999/07/15 15:21:38 momjian Exp $
*
* NOTES
* For backward-compatability purposes we have to allow there
#include
#include
+#include "utils/memutils.h"
/*
* AclId system identifier for the user, group, etc.
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: array.h,v 1.18 1999/05/25 16:14:49 momjian Exp $
+ * $Id: array.h,v 1.19 1999/07/15 15:21:38 momjian Exp $
*
* NOTES
* XXX the data array should be LONGALIGN'd -- notice that the array
#define ARRAY_H
#include
+#include "utils/memutils.h"
typedef struct
{
*------------------------------------------------------------------------
*/
-/* #if defined(irix5) */
-/* #define RETURN_NULL {*isNull = true; return(0); }*/
- /* #else *//* irix5 */
#define RETURN_NULL {*isNull = true; return(0); }
- /* #endif *//* irix5 */
#define NAME_LEN 30
#define MAX_BUFF_SIZE BLCKSZ
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: builtins.h,v 1.81 1999/05/26 12:57:03 momjian Exp $
+ * $Id: builtins.h,v 1.82 1999/07/15 15:21:39 momjian Exp $
*
* NOTES
* This should normally only be included by fmgr.h.
#include
#include
#include
-#include
#include
-#include
#include
/*
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: catcache.h,v 1.16 1999/07/14 01:20:26 momjian Exp $
+ * $Id: catcache.h,v 1.17 1999/07/15 15:21:39 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
-#include
-#include
-#include
/*
* struct catctup: tuples in the cache.
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: dt.h,v 1.40 1999/05/25 16:14:53 momjian Exp $
+ * $Id: dt.h,v 1.41 1999/07/15 15:21:39 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
#include
+#include
/*
* DateTime represents absolute time.
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: dynamic_loader.h,v 1.10 1999/02/13 23:22:18 momjian Exp $
+ * $Id: dynamic_loader.h,v 1.11 1999/07/15 15:21:39 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
#include /* For MAXPATHLEN */
+/* we need this include because port files use them */
#ifdef MIN
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: inval.h,v 1.11 1999/02/13 23:22:23 momjian Exp $
+ * $Id: inval.h,v 1.12 1999/07/15 15:21:39 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define INVAL_H
-#include
extern void InitLocalInvalidateData(void);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: lselect.h,v 1.12 1999/02/13 23:22:24 momjian Exp $
+ * $Id: lselect.h,v 1.13 1999/07/15 15:21:40 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
-#include "access/skey.h"
-#include "access/tupdesc.h"
-#include "access/htup.h"
#include "utils/syscache.h"
struct leftist
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: lsyscache.h,v 1.16 1999/02/13 23:22:24 momjian Exp $
+ * $Id: lsyscache.h,v 1.17 1999/07/15 15:21:41 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef LSYSCACHE_H
#define LSYSCACHE_H
extern bool op_class(Oid oprno, int32 opclass, Oid amopid);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: memutils.h,v 1.29 1999/07/14 01:20:29 momjian Exp $
+ * $Id: memutils.h,v 1.30 1999/07/15 15:21:41 momjian Exp $
*
* NOTES
* some of the information in this file will be moved to
* This is not needed by this include file, but by almost every file
* that includes this file.
*/
-#include "utils/mcxt.h"
/* ----------------
* Alignment macros: align a length or address appropriately for a given type.
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: portal.h,v 1.15 1999/06/12 14:07:32 momjian Exp $
+ * $Id: portal.h,v 1.16 1999/07/15 15:21:42 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define PORTAL_H
#include
-#include
#include
-#include
typedef struct PortalBlockData
{
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: psort.h,v 1.19 1999/05/25 16:14:57 momjian Exp $
+ * $Id: psort.h,v 1.20 1999/07/15 15:21:42 momjian Exp $
*
*-------------------------------------------------------------------------
*/
} Psortstate;
#ifdef EBUG
-#include "utils/elog.h"
#include "storage/buf.h"
#include "storage/bufmgr.h"
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: syscache.h,v 1.13 1999/02/13 23:22:32 momjian Exp $
+ * $Id: syscache.h,v 1.14 1999/07/15 15:21:43 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef SYSCACHE_H
#define SYSCACHE_H
-#include
-#include
/* #define CACHEDEBUG *//* turns DEBUG elogs on */
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: temprel.h,v 1.3 1999/05/25 16:14:57 momjian Exp $
+ * $Id: temprel.h,v 1.4 1999/07/15 15:21:43 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define TEMPREL_H
#include "access/htup.h"
-#include "access/attnum.h"
void create_temp_relation(char *relname, HeapTuple pg_class_tuple);
void remove_all_temp_relations(void);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: tqual.h,v 1.22 1999/05/25 22:43:39 momjian Exp $
+ * $Id: tqual.h,v 1.23 1999/07/15 15:21:43 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define TQUAL_H
typedef struct SnapshotData
{
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.14 1999/07/13 21:17:44 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.15 1999/07/15 15:21:43 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "type.h"
#include "preproc.h"
#include "parser/keywords.h"
-#include "utils/elog.h"
/*
* List of (keyword-name, keyword-token-value) pairs.
#include "access/htup.h"
#include "catalog/catname.h"
#include "utils/numeric.h"
+#include "utils/memutils.h"
+#include "storage/bufpage.h"
#include "extern.h"
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/create_language.l,v 1.3 1998/06/23 17:52:31 momjian Exp $
+.\" $Header: /cvsroot/pgsql/src/man/Attic/create_language.l,v 1.4 1999/07/15 15:21:45 momjian Exp $
.TH "CREATE LANGUAGE" SQL 11/05/95 PostgreSQL PostgreSQL
.SH "NAME"
create language - define a new language for functions
#include "executor/spi.h"
#include "commands/trigger.h"
-#include "utils/elog.h"
#include "fmgr.h" /* for FmgrValues struct */
#include "access/heapam.h"
#include "utils/syscache.h"
* procedural language
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_comp.c,v 1.7 1999/05/25 16:15:17 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_comp.c,v 1.8 1999/07/15 15:21:46 momjian Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
#include "executor/spi.h"
#include "commands/trigger.h"
-#include "utils/elog.h"
#include "utils/builtins.h"
#include "fmgr.h"
#include "access/heapam.h"
* procedural language
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.12 1999/07/04 01:03:01 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.13 1999/07/15 15:21:47 momjian Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
#include "executor/spi.h"
#include "executor/spi_priv.h"
#include "commands/trigger.h"
-#include "utils/elog.h"
#include "utils/builtins.h"
#include "fmgr.h"
#include "access/heapam.h"
* procedural language
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_handler.c,v 1.2 1998/09/01 04:40:25 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_handler.c,v 1.3 1999/07/15 15:21:48 momjian Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
#include "executor/spi.h"
#include "commands/trigger.h"
-#include "utils/elog.h"
#include "utils/builtins.h"
#include "fmgr.h"
#include "access/heapam.h"
* procedural language (PL)
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.12 1999/05/26 12:57:23 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.13 1999/07/15 15:21:50 momjian Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
#include "executor/spi.h"
#include "commands/trigger.h"
-#include "utils/elog.h"
#include "utils/builtins.h"
#include "fmgr.h"
#include "access/heapam.h"
--- /dev/null
+:
+trap "rm -f /tmp/$$" 0 1 2 3 15
+for FILE
+do
+ cat "$FILE" | grep "^#define" >/tmp/$$
+ cat /tmp/$$ | sed -n 's/^#define[ ][ ]*\([a-zA-Z0-9_]*\)[ ][ ]*[^ ].*$/(void)\1;/p'
+ cat /tmp/$$ | sed -n 's/^#define[ ][ ]*\([a-zA-Z0-9_]*([^)]*)\).*$/(=void)\1;/p' |
+ sed 's/([a-zA-Z0-9_ ][a-zA-Z0-9_ ]*)/(0)/g' |
+ sed 's/([a-zA-Z0-9_ ]*,/(0,/g' |
+ sed 's/,[a-zA-Z0-9_ ]*,/,0,/g' |
+ sed 's/,[a-zA-Z0-9_ ]*)/,0)/g' |
+ sed 's/(=void)/(void)/g'
+done
--- /dev/null
+:
+trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a" 0 1 2 3 15
+find . \( -name CVS -a -prune \) -o -name '*.[ch]' -type f -print | while read FILE
+do
+ sed 's/->[a-zA-Z0-9_\.]*//g' "$FILE" >/tmp/$$a
+ echo "#include \"postgres.h\"" >/tmp/$$.c
+ echo "#include \"/tmp/$$a\"" >>/tmp/$$.c
+ echo "void main() {" >>/tmp/$$.c
+ pgdefine "$FILE" >>/tmp/$$.c
+ echo "}" >>/tmp/$$.c
+ cc -Werror -Wall -I/pg/include -I/pg/backend -c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
+ if [ "$?" -ne 0 ]
+ then echo "$FILE"
+ if [ "$1" = "-v" ]
+ then cat /tmp/$$
+ nl /tmp/$$.c
+ echo
+ fi
+ fi
+done
--- /dev/null
+:
+trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a /tmp/$$b" 0 1 2 3 15
+find . \( -name CVS -a -prune \) -o -type f -print | while read FILE
+do
+ cat "$FILE" | grep -v "^#if" | grep -v "^#else" |
+ grep -v "^#endif" | sed 's/->[a-zA-Z0-9_\.]*//g' >/tmp/$$a
+ cat /tmp/$$a | grep "^#include" |
+ sed 's/#include[ ]*[<"]\([^>"]*\).*$/\1/g' |
+ while read INCLUDE
+ do
+ [ -s /usr/include/$INCLUDE ] && continue
+ cat /tmp/$$a |
+ grep -v '^#include[ ]*[<"]'"$INCLUDE"'[>"]' >/tmp/$$b
+ echo "#include \"postgres.h\"" >/tmp/$$.c
+ echo "#include \"/tmp/$$b\"" >>/tmp/$$.c
+ echo "void main() {" >>/tmp/$$.c
+ pgdefine "$FILE" >>/tmp/$$.c
+ echo "}" >>/tmp/$$.c
+ cc -Werror -Wall -I/pg/include -I/pg/backend -c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
+ if [ "$?" -eq 0 ]
+ then echo "$FILE $INCLUDE"
+ if [ "$1" = "-v" ]
+ then cat /tmp/$$
+ cat /tmp/$$.c
+ fi
+ fi
+ done
+done
/* do not include libpq-fe.h for backend-loaded functions*/
/* #include "libpq-fe.h" */
#include "postgres.h"
-#include "utils/mcxt.h"
typedef struct Complex
{
#include
#include
#include "postgres.h" /* for variable length type */
-#include "utils/palloc.h" /* for palloc */
#include "executor/executor.h" /* for GetAttributeByName() */
#include "utils/geo_decls.h" /* for point type */