Remove Tee code, move to _deadcode.
authorBruce Momjian <bruce@momjian.us>
Tue, 23 Mar 1999 16:51:04 +0000 (16:51 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 23 Mar 1999 16:51:04 +0000 (16:51 +0000)
13 files changed:
src/backend/commands/explain.c
src/backend/executor/Makefile
src/backend/executor/_deadcode/nodeTee.c [moved from src/backend/executor/nodeTee.c with 100% similarity]
src/backend/executor/execAmi.c
src/backend/executor/execMain.c
src/backend/executor/execProcnode.c
src/backend/executor/execTuples.c
src/backend/nodes/outfuncs.c
src/backend/nodes/print.c
src/include/executor/nodeTee.h [deleted file]
src/include/nodes/execnodes.h
src/include/nodes/nodes.h
src/include/nodes/plannodes.h

index 09d40154bc79573e4f78ebb3e94ad8a1a6649be3..da00a8491a0a3f2816855245d5e76721372f7fa8 100644 (file)
@@ -194,9 +194,6 @@ explain_outNode(StringInfo str, Plan *plan, int indent, ExplainState *es)
                case T_Hash:
                        pname = "Hash";
                        break;
-               case T_Tee:
-                       pname = "Tee";
-                       break;
                default:
                        pname = "";
                        break;
index 85dd9813b7c8c38c81c26fdf6c94749288ee377d..efe0961d96d524302a96eaaa6eaaef4586f2b7c9 100644 (file)
@@ -18,7 +18,7 @@ OBJS = execAmi.o execFlatten.o execJunk.o execMain.o \
        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
 
index 12398f943fabab6be84cad38a82a9bf9369b178b..444906bf4873a4f57946057425da13ee860d8b21 100644 (file)
@@ -34,7 +34,6 @@
 #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"
@@ -382,12 +381,6 @@ ExecReScan(Plan *node, ExprContext *exprCtxt, Plan *parent)
                        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;
index 9fb60817b586f08550a85399450deca445bbdd96..3b44875d6196c3bc477c16d6288da1b52af290c4 100644 (file)
@@ -884,7 +884,6 @@ ExecutePlan(EState *estate,
                        DestReceiver* destfunc)
 {
        JunkFilter *junkfilter;
-
        TupleTableSlot *slot;
        ItemPointer tupleid = NULL;
        ItemPointerData tuple_ctid;
@@ -898,7 +897,7 @@ ExecutePlan(EState *estate,
        current_tuple_count = 0;
        result = NULL;
 
-       /*
+       /*
         *      Set the direction.
         */
        estate->es_direction = direction;
index 637481e0498b6228942a247fdff8633ddead3506..bfa2ddd882437c49719401be5e7ed499dcba41ae 100644 (file)
@@ -90,7 +90,6 @@
 #include "executor/nodeAgg.h"
 #include "executor/nodeHash.h"
 #include "executor/nodeHashjoin.h"
-#include "executor/nodeTee.h"
 #include "executor/nodeSubplan.h"
 
 /* ------------------------------------------------------------------------
@@ -196,10 +195,6 @@ ExecInitNode(Plan *node, EState *estate, Plan *parent)
                        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;
@@ -248,7 +243,7 @@ ExecProcNode(Plan *node, Plan *parent)
        switch (nodeTag(node))
        {
                        /* ----------------
-                        *              control nodes
+                        *      control nodes
                         * ----------------
                         */
                case T_Result:
@@ -315,10 +310,6 @@ ExecProcNode(Plan *node, Plan *parent)
                        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;
@@ -390,9 +381,6 @@ ExecCountSlotsNode(Plan *node)
                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));
@@ -509,10 +497,6 @@ ExecEndNode(Plan *node, Plan *parent)
                        ExecEndHashJoin((HashJoin *) node);
                        break;
 
-               case T_Tee:
-                       ExecEndTee((Tee *) node, parent);
-                       break;
-
                default:
                        elog(ERROR, "ExecEndNode: node %d unsupported", nodeTag(node));
                        break;
index bc313019ed6a515831484ad6fb8b780073fabdb7..b92b8fdf5f51a7fbd45eabff2b9c9a79bdec3ed5 100644 (file)
@@ -800,14 +800,6 @@ NodeGetResultTupleSlot(Plan *node)
                        }
                        break;
 
-               case T_Tee:
-                       {
-                               TeeState   *teestate = ((Tee *) node)->teestate;
-
-                               slot = teestate->cstate.cs_ResultTupleSlot;
-                       }
-                       break;
-
                default:
                        /* ----------------
                         *        should never get here
index ae3f543cb60ae9bd734c8dddef3220816628ea93..cc4322c313c1d466aba10b51ae525b64b44f4c5b 100644 (file)
@@ -544,20 +544,6 @@ _outHash(StringInfo str, Hash *node)
                        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.
@@ -1528,9 +1514,6 @@ _outNode(StringInfo str, void *obj)
                        case T_SubPlan:
                                _outSubPlan(str, obj);
                                break;
-                       case T_Tee:
-                               _outTee(str, obj);
-                               break;
                        case T_Resdom:
                                _outResdom(str, obj);
                                break;
index 2e0f0f207d0f3cfdcf718d4708a0f3f8f6256a81..c774097ba33100fe3eb3354d6bc4ec04662b0708 100644 (file)
@@ -339,9 +339,6 @@ plannode_type(Plan *p)
                case T_Hash:
                        return "HASH";
                        break;
-               case T_Tee:
-                       return "TEE";
-                       break;
                case T_Choose:
                        return "CHOOSE";
                        break;
diff --git a/src/include/executor/nodeTee.h b/src/include/executor/nodeTee.h
deleted file mode 100644 (file)
index c9f92c6..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-/*-------------------------------------------------------------------------
- *
- * nodeTee.h
- *       support functions for a Tee executor node
- *
- * Copyright (c) 1994, Regents of the University of California
- *
- * $Id$
- *
- *-------------------------------------------------------------------------
- */
-
-#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 */
index 03b905522a946b7d6b7eae5b22eb959a11d0cc23..9caf3b05b0ba922439f99fe7fbcf6d12831705be 100644 (file)
@@ -686,6 +686,7 @@ typedef struct HashState
        File       *hashBatches;
 } HashState;
 
+#ifdef NOT_USED
 /* -----------------------
  *     TeeState information
  *       leftPlace  :    next item in the queue unseen by the left parent
@@ -704,13 +705,14 @@ typedef struct TeeState
 {
        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 */
index 2dfbaeec8a00b372df8be80ad3574819d4c95b53..a9e50d2b275c4108d745b97dffe26e3812f60720 100644 (file)
@@ -45,7 +45,6 @@ typedef enum NodeTag
        T_Unique,
        T_Hash,
        T_Choose,
-       T_Tee,
        T_Group,
        T_SubPlan,
 
@@ -117,7 +116,6 @@ typedef enum NodeTag
        T_SortState,
        T_UniqueState,
        T_HashState,
-       T_TeeState,
 
        /*---------------------
         * TAGS FOR MEMORY NODES (memnodes.h)
index fcf0a80b0a8e66ccee8c8f39ceba22e5ab8a5a27..6259f046fad52de91c37d17c858331186fa57dac 100644 (file)
@@ -325,6 +325,7 @@ typedef struct Hash
        int                     hashtablesize;
 } Hash;
 
+#ifdef NOT_USED
 /* -------------------
  *             Tee node information
  *
@@ -344,6 +345,7 @@ typedef struct Tee
                                                                 * Tee may be different than the parent
                                                                 * plans */
 } Tee;
+#endif
 
 /* ---------------------
  *             SubPlan node