aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/executor')
-rw-r--r--src/backend/executor/Makefile3
-rw-r--r--src/backend/executor/execAmi.c7
-rw-r--r--src/backend/executor/execMain.c11
-rw-r--r--src/backend/executor/execQual.c6
-rw-r--r--src/backend/executor/execUtils.c9
-rw-r--r--src/backend/executor/functions.c4
-rw-r--r--src/backend/executor/nodeAgg.c4
-rw-r--r--src/backend/executor/nodeAppend.c5
-rw-r--r--src/backend/executor/nodeHash.c12
-rw-r--r--src/backend/executor/nodeHashjoin.c9
-rw-r--r--src/backend/executor/nodeIndexscan.c6
-rw-r--r--src/backend/executor/nodeMaterial.c4
-rw-r--r--src/backend/executor/nodeMergejoin.c3
-rw-r--r--src/backend/executor/nodeTee.c4
14 files changed, 70 insertions, 17 deletions
diff --git a/src/backend/executor/Makefile b/src/backend/executor/Makefile
index cc1f5d1c2e1..16838d28fa5 100644
--- a/src/backend/executor/Makefile
+++ b/src/backend/executor/Makefile
@@ -4,7 +4,7 @@
# Makefile for executor
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/backend/executor/Makefile,v 1.1 1996/10/27 09:47:26 bryanh Exp $
+# $Header: /cvsroot/pgsql/src/backend/executor/Makefile,v 1.2 1996/11/06 06:47:24 scrappy Exp $
#
#-------------------------------------------------------------------------
@@ -13,7 +13,6 @@ include ../../Makefile.global
INCLUDE_OPT = -I.. \
-I../port/$(PORTNAME) \
- -I../include \
-I../../include
CFLAGS+=$(INCLUDE_OPT)
diff --git a/src/backend/executor/execAmi.c b/src/backend/executor/execAmi.c
index 7a245ea756e..0fae4f2d05a 100644
--- a/src/backend/executor/execAmi.c
+++ b/src/backend/executor/execAmi.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/execAmi.c,v 1.2 1996/10/31 10:11:21 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/execAmi.c,v 1.3 1996/11/06 06:47:26 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -32,6 +32,7 @@
#include "executor/executor.h"
#include "storage/smgr.h"
+#include "utils/mcxt.h"
#include "executor/nodeSeqscan.h"
#include "executor/nodeIndexscan.h"
#include "executor/nodeSort.h"
@@ -400,8 +401,8 @@ ExecCreatR(TupleDesc tupType,
{
Relation relDesc;
- EU4_printf("ExecCreatR: %s numatts=%d type=%d oid=%d\n",
- "entering: ", numberAttributes, tupType, relationOid);
+ EU4_printf("ExecCreatR: %s type=%d oid=%d\n",
+ "entering: ", tupType, relationOid);
CXT1_printf("ExecCreatR: context is %d\n", CurrentMemoryContext);
relDesc = NULL;
diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c
index ff41238959b..c5e26186087 100644
--- a/src/backend/executor/execMain.c
+++ b/src/backend/executor/execMain.c
@@ -26,23 +26,32 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.7 1996/10/31 10:11:24 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.8 1996/11/06 06:47:32 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
+#include <string.h>
#include "postgres.h"
+#include "miscadmin.h"
#include "executor/executor.h"
+#include "executor/execdefs.h"
+#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 "parser/parsetree.h" /* rt_fetch() */
#include "storage/bufmgr.h"
#include "storage/lmgr.h"
+#include "storage/smgr.h"
#include "commands/async.h"
/* #include "access/localam.h" */
#include "optimizer/var.h"
+#include "access/heapam.h"
+#include "catalog/heap.h"
+
/* decls for local routines only used within this module */
diff --git a/src/backend/executor/execQual.c b/src/backend/executor/execQual.c
index a632ed50054..f18cb4ed936 100644
--- a/src/backend/executor/execQual.c
+++ b/src/backend/executor/execQual.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.8 1996/10/31 10:11:28 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.9 1996/11/06 06:47:34 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -30,6 +30,7 @@
*
*/
#include "postgres.h"
+#include "fmgr.h"
#include "nodes/primnodes.h"
#include "nodes/relation.h"
@@ -38,7 +39,9 @@
#include "nodes/memnodes.h"
#include "catalog/pg_language.h"
+#include "catalog/pg_proc.h"
#include "executor/executor.h"
+#include "executor/execdebug.h"
#include "executor/execFlatten.h"
#include "executor/functions.h"
#include "access/heapam.h"
@@ -48,6 +51,7 @@
#include "utils/fcache.h"
#include "utils/fcache2.h"
#include "utils/array.h"
+#include "utils/mcxt.h"
/* ----------------
* externs and constants
diff --git a/src/backend/executor/execUtils.c b/src/backend/executor/execUtils.c
index 397053bf367..276bb632ae9 100644
--- a/src/backend/executor/execUtils.c
+++ b/src/backend/executor/execUtils.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/execUtils.c,v 1.3 1996/10/31 10:11:43 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/execUtils.c,v 1.4 1996/11/06 06:47:35 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -41,13 +41,20 @@
*/
#include "postgres.h"
+#include "fmgr.h"
#include "executor/executor.h"
+#include "executor/execdebug.h"
#include "access/itup.h"
+#include "access/heapam.h"
+#include "access/genam.h"
#include "optimizer/clauses.h"
#include "utils/palloc.h"
+#include "utils/mcxt.h"
#include "commands/command.h"
#include "catalog/index.h"
+#include "catalog/catname.h"
+#include "catalog/pg_proc.h"
/* ----------------------------------------------------------------
* global counters for number of tuples processed, retrieved,
diff --git a/src/backend/executor/functions.c b/src/backend/executor/functions.c
index 36ac698f89d..a1e6bf1c45a 100644
--- a/src/backend/executor/functions.c
+++ b/src/backend/executor/functions.c
@@ -8,10 +8,11 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/functions.c,v 1.3 1996/10/26 04:13:20 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/functions.c,v 1.4 1996/11/06 06:47:36 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
+#include <string.h>
#include "postgres.h"
#include "nodes/primnodes.h"
@@ -35,6 +36,7 @@
#include "access/heapam.h"
#include "access/xact.h"
#include "executor/executor.h"
+#include "executor/execdefs.h"
#include "executor/functions.h"
#undef new
diff --git a/src/backend/executor/nodeAgg.c b/src/backend/executor/nodeAgg.c
index e7bbc2fb59c..44e051a3038 100644
--- a/src/backend/executor/nodeAgg.c
+++ b/src/backend/executor/nodeAgg.c
@@ -15,7 +15,10 @@
*
*-------------------------------------------------------------------------
*/
+#include <string.h>
+
#include "postgres.h"
+#include "fmgr.h"
#include "access/heapam.h"
#include "catalog/pg_aggregate.h"
@@ -24,6 +27,7 @@
#include "executor/nodeAgg.h"
#include "storage/bufmgr.h"
#include "utils/palloc.h"
+#include "utils/syscache.h"
#include "parser/catalog_utils.h"
/*
diff --git a/src/backend/executor/nodeAppend.c b/src/backend/executor/nodeAppend.c
index cdbdab6592d..fe2e88a7ad6 100644
--- a/src/backend/executor/nodeAppend.c
+++ b/src/backend/executor/nodeAppend.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/nodeAppend.c,v 1.3 1996/10/31 10:11:54 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/nodeAppend.c,v 1.4 1996/11/06 06:47:39 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -55,10 +55,13 @@
#include "postgres.h"
+#include "access/heapam.h"
#include "executor/executor.h"
+#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 */
/* ----------------------------------------------------------------
diff --git a/src/backend/executor/nodeHash.c b/src/backend/executor/nodeHash.c
index d6067713cfe..e3b004c0a29 100644
--- a/src/backend/executor/nodeHash.c
+++ b/src/backend/executor/nodeHash.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/nodeHash.c,v 1.6 1996/10/31 10:12:00 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/nodeHash.c,v 1.7 1996/11/06 06:47:40 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -21,7 +21,14 @@
#include <stdio.h> /* for sprintf() */
#include <math.h>
+#include <string.h>
#include <sys/file.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+
+#include <unistd.h>
+
#include "postgres.h"
@@ -31,6 +38,7 @@
#include "executor/executor.h"
#include "executor/nodeHash.h"
#include "executor/nodeHashjoin.h"
+#include "executor/execdebug.h"
#include "utils/palloc.h"
#include "utils/hsearch.h"
@@ -845,7 +853,7 @@ static int hjtmpcnt = 0;
static void
mk_hj_temp(char *tempname)
{
- sprintf(tempname, "HJ%d.%d", getpid(), hjtmpcnt);
+ sprintf(tempname, "HJ%d.%d", (int)getpid(), hjtmpcnt);
hjtmpcnt = (hjtmpcnt + 1) % 1000;
}
diff --git a/src/backend/executor/nodeHashjoin.c b/src/backend/executor/nodeHashjoin.c
index 40fa9d95628..e6eee333b87 100644
--- a/src/backend/executor/nodeHashjoin.c
+++ b/src/backend/executor/nodeHashjoin.c
@@ -7,16 +7,23 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/nodeHashjoin.c,v 1.2 1996/10/31 05:53:35 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/nodeHashjoin.c,v 1.3 1996/11/06 06:47:41 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
+#include <string.h>
#include <sys/file.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+
+
#include "postgres.h"
#include "storage/bufmgr.h" /* for BLCKSZ */
#include "storage/fd.h" /* for SEEK_ */
#include "executor/executor.h"
+#include "executor/execdebug.h"
#include "executor/nodeHash.h"
#include "executor/nodeHashjoin.h"
diff --git a/src/backend/executor/nodeIndexscan.c b/src/backend/executor/nodeIndexscan.c
index bb50aea2769..db918eb3cd3 100644
--- a/src/backend/executor/nodeIndexscan.c
+++ b/src/backend/executor/nodeIndexscan.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/nodeIndexscan.c,v 1.3 1996/10/31 10:12:05 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/nodeIndexscan.c,v 1.4 1996/11/06 06:47:42 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -31,13 +31,17 @@
#include "postgres.h"
#include "executor/executor.h"
+#include "executor/execdebug.h"
#include "executor/nodeIndexscan.h"
#include "optimizer/clauses.h" /* for get_op, get_leftop, get_rightop */
#include "parser/parsetree.h" /* for rt_fetch() */
#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"
diff --git a/src/backend/executor/nodeMaterial.c b/src/backend/executor/nodeMaterial.c
index 19edb49e5d8..d836ae98e80 100644
--- a/src/backend/executor/nodeMaterial.c
+++ b/src/backend/executor/nodeMaterial.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/nodeMaterial.c,v 1.3 1996/10/31 10:12:09 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/nodeMaterial.c,v 1.4 1996/11/06 06:47:44 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -24,7 +24,9 @@
#include "executor/executor.h"
#include "executor/nodeMaterial.h"
#include "catalog/catalog.h"
+#include "catalog/heap.h"
#include "optimizer/internal.h" /* for _TEMP_RELATION_ID_ */
+#include "access/heapam.h"
/* ----------------------------------------------------------------
* ExecMaterial
diff --git a/src/backend/executor/nodeMergejoin.c b/src/backend/executor/nodeMergejoin.c
index aabc985d800..94bf950c579 100644
--- a/src/backend/executor/nodeMergejoin.c
+++ b/src/backend/executor/nodeMergejoin.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/nodeMergejoin.c,v 1.2 1996/10/31 10:12:11 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/nodeMergejoin.c,v 1.3 1996/11/06 06:47:45 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -78,6 +78,7 @@
#include "postgres.h"
#include "executor/executor.h"
+#include "executor/execdefs.h"
#include "executor/nodeMergejoin.h"
#include "utils/lsyscache.h"
diff --git a/src/backend/executor/nodeTee.c b/src/backend/executor/nodeTee.c
index a43800e0e5c..ee8be28ca53 100644
--- a/src/backend/executor/nodeTee.c
+++ b/src/backend/executor/nodeTee.c
@@ -15,7 +15,7 @@
* ExecEndTee
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/Attic/nodeTee.c,v 1.2 1996/10/31 10:12:24 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/Attic/nodeTee.c,v 1.3 1996/11/06 06:47:46 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -25,7 +25,9 @@
#include "utils/palloc.h"
#include "utils/relcache.h"
+#include "utils/mcxt.h"
#include "storage/bufmgr.h" /* for IncrBufferRefCount */
+#include "storage/smgr.h"
#include "optimizer/internal.h"
#include "executor/executor.h"
#include "executor/nodeTee.h"