*
* Copyright (c) 1994-5, Regents of the University of California
*
- * $Id: explain.c,v 1.32 1999/02/13 23:15:06 momjian Exp $
+ * $Id: explain.c,v 1.33 1999/03/23 16:50:46 momjian Exp $
*
*/
#include
case T_Hash:
pname = "Hash";
break;
- case T_Tee:
- pname = "Tee";
- break;
default:
pname = "";
break;
# Makefile for executor
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/backend/executor/Makefile,v 1.7 1998/04/06 00:22:26 momjian Exp $
+# $Header: /cvsroot/pgsql/src/backend/executor/Makefile,v 1.8 1999/03/23 16:50:46 momjian Exp $
#
#-------------------------------------------------------------------------
execUtils.o functions.o nodeAppend.o nodeAgg.o nodeHash.o \
nodeHashjoin.o nodeIndexscan.o nodeMaterial.o nodeMergejoin.o \
nodeNestloop.o nodeResult.o nodeSeqscan.o nodeSort.o \
- nodeUnique.o nodeTee.o nodeGroup.o spi.o nodeSubplan.o
+ nodeUnique.o nodeGroup.o spi.o nodeSubplan.o
all: SUBSYS.o
* ExecInitTee
* ExecEndTee
*
- * $Id: nodeTee.c,v 1.30 1999/02/13 23:15:29 momjian Exp $
+ * $Id: nodeTee.c,v 1.1 1999/03/23 16:50:49 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: execAmi.c,v 1.32 1999/02/13 23:15:14 momjian Exp $
+ * $Id: execAmi.c,v 1.33 1999/03/23 16:50:47 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "executor/nodeSeqscan.h"
#include "executor/nodeIndexscan.h"
#include "executor/nodeSort.h"
-#include "executor/nodeTee.h"
#include "executor/nodeMaterial.h"
#include "executor/nodeNestloop.h"
#include "executor/nodeHashjoin.h"
ExecReScanAppend((Append *) node, exprCtxt, parent);
break;
-/*
- * Tee is never used
- case T_Tee:
- ExecTeeReScan((Tee *) node, exprCtxt, parent);
- break;
- */
default:
elog(ERROR, "ExecReScan: node type %u not supported", nodeTag(node));
return;
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.81 1999/03/20 01:13:21 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.82 1999/03/23 16:50:47 momjian Exp $
*
*-------------------------------------------------------------------------
*/
DestReceiver* destfunc)
{
JunkFilter *junkfilter;
-
TupleTableSlot *slot;
ItemPointer tupleid = NULL;
ItemPointerData tuple_ctid;
current_tuple_count = 0;
result = NULL;
- /*
+ /*
* Set the direction.
*/
estate->es_direction = direction;
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/execProcnode.c,v 1.13 1999/02/13 23:15:17 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/execProcnode.c,v 1.14 1999/03/23 16:50:48 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "executor/nodeAgg.h"
#include "executor/nodeHash.h"
#include "executor/nodeHashjoin.h"
-#include "executor/nodeTee.h"
#include "executor/nodeSubplan.h"
/* ------------------------------------------------------------------------
result = ExecInitHashJoin((HashJoin *) node, estate, parent);
break;
- case T_Tee:
- result = ExecInitTee((Tee *) node, estate, parent);
- break;
-
default:
elog(ERROR, "ExecInitNode: node %d unsupported", nodeTag(node));
result = FALSE;
switch (nodeTag(node))
{
/* ----------------
- * control nodes
+ * control nodes
* ----------------
*/
case T_Result:
result = ExecHashJoin((HashJoin *) node);
break;
- case T_Tee:
- result = ExecTee((Tee *) node, parent);
- break;
-
default:
elog(ERROR, "ExecProcNode: node %d unsupported", nodeTag(node));
result = NULL;
case T_HashJoin:
return ExecCountSlotsHashJoin((HashJoin *) node);
- case T_Tee:
- return ExecCountSlotsTee((Tee *) node);
-
default:
elog(ERROR, "ExecCountSlotsNode: node not yet supported: %d",
nodeTag(node));
ExecEndHashJoin((HashJoin *) node);
break;
- case T_Tee:
- ExecEndTee((Tee *) node, parent);
- break;
-
default:
elog(ERROR, "ExecEndNode: node %d unsupported", nodeTag(node));
break;
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/execTuples.c,v 1.23 1999/02/13 23:15:19 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/execTuples.c,v 1.24 1999/03/23 16:50:48 momjian Exp $
*
*-------------------------------------------------------------------------
*/
}
break;
- case T_Tee:
- {
- TeeState *teestate = ((Tee *) node)->teestate;
-
- slot = teestate->cstate.cs_ResultTupleSlot;
- }
- break;
-
default:
/* ----------------
* should never get here
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: outfuncs.c,v 1.77 1999/03/01 00:10:31 tgl Exp $
+ * $Id: outfuncs.c,v 1.78 1999/03/23 16:50:53 momjian Exp $
*
* NOTES
* Every (plan) node in POSTGRES has an associated "out" routine which
node->hashtablesize);
}
-static void
-_outTee(StringInfo str, Tee *node)
-{
- appendStringInfo(str, " TEE ");
- _outPlanInfo(str, (Plan *) node);
-
- appendStringInfo(str, " :leftParent %X :rightParent %X ",
- (int) node->leftParent,
- (int) node->rightParent);
-
- appendStringInfo(str, " :rtentries ");
- _outNode(str, node->rtentries);
-}
-
/*****************************************************************************
*
* Stuff from primnodes.h.
case T_SubPlan:
_outSubPlan(str, obj);
break;
- case T_Tee:
- _outTee(str, obj);
- break;
case T_Resdom:
_outResdom(str, obj);
break;
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/print.c,v 1.25 1999/02/22 01:57:50 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/print.c,v 1.26 1999/03/23 16:50:54 momjian Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
case T_Hash:
return "HASH";
break;
- case T_Tee:
- return "TEE";
- break;
case T_Choose:
return "CHOOSE";
break;
+++ /dev/null
-/*-------------------------------------------------------------------------
- *
- * nodeTee.h
- * support functions for a Tee executor node
- *
- * Copyright (c) 1994, Regents of the University of California
- *
- * $Id: nodeTee.h,v 1.8 1999/02/13 23:21:29 momjian Exp $
- *
- *-------------------------------------------------------------------------
- */
-
-#ifndef NODETEE_H
-#define NODETEE_H
-
-#include "executor/tuptable.h"
-#include "nodes/execnodes.h"
-#include "nodes/plannodes.h"
-
-extern TupleTableSlot *ExecTee(Tee *node, Plan *parent);
-extern bool ExecInitTee(Tee *node, EState *estate, Plan *parent);
-extern void ExecEndTee(Tee *node, Plan *parent);
-extern int ExecCountSlotsTee(Tee *node);
-
-#endif /* NODETEE_H */
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: execnodes.h,v 1.26 1999/02/28 00:36:04 tgl Exp $
+ * $Id: execnodes.h,v 1.27 1999/03/23 16:51:00 momjian Exp $
*
*-------------------------------------------------------------------------
*/
File *hashBatches;
} HashState;
+#ifdef NOT_USED
/* -----------------------
* TeeState information
* leftPlace : next item in the queue unseen by the left parent
{
CommonState cstate; /* its first field is NodeTag */
int tee_leftPlace,
- tee_rightPlace,
- tee_lastPlace;
+ tee_rightPlace,
+ tee_lastPlace;
char *tee_bufferRelname;
- Relation tee_bufferRel;
+ Relation tee_bufferRel;
MemoryContext tee_mcxt;
- HeapScanDesc tee_leftScanDesc,
- tee_rightScanDesc;
+ HeapScanDesc tee_leftScanDesc,
+ tee_rightScanDesc;
} TeeState;
+#endif
#endif /* EXECNODES_H */
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodes.h,v 1.47 1999/03/07 03:34:11 momjian Exp $
+ * $Id: nodes.h,v 1.48 1999/03/23 16:51:03 momjian Exp $
*
*-------------------------------------------------------------------------
*/
T_Unique,
T_Hash,
T_Choose,
- T_Tee,
T_Group,
T_SubPlan,
T_SortState,
T_UniqueState,
T_HashState,
- T_TeeState,
/*---------------------
* TAGS FOR MEMORY NODES (memnodes.h)
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: plannodes.h,v 1.23 1999/03/01 00:10:36 tgl Exp $
+ * $Id: plannodes.h,v 1.24 1999/03/23 16:51:04 momjian Exp $
*
*-------------------------------------------------------------------------
*/
int hashtablesize;
} Hash;
+#ifdef NOT_USED
/* -------------------
* Tee node information
*
* Tee may be different than the parent
* plans */
} Tee;
+#endif
/* ---------------------
* SubPlan node