Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
344dfc0b
Commit
344dfc0b
authored
Mar 23, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Tee code, move to _deadcode.
parent
92781fc1
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
24 additions
and
102 deletions
+24
-102
src/backend/commands/explain.c
src/backend/commands/explain.c
+1
-4
src/backend/executor/Makefile
src/backend/executor/Makefile
+2
-2
src/backend/executor/_deadcode/nodeTee.c
src/backend/executor/_deadcode/nodeTee.c
+1
-1
src/backend/executor/execAmi.c
src/backend/executor/execAmi.c
+1
-8
src/backend/executor/execMain.c
src/backend/executor/execMain.c
+2
-3
src/backend/executor/execProcnode.c
src/backend/executor/execProcnode.c
+2
-18
src/backend/executor/execTuples.c
src/backend/executor/execTuples.c
+1
-9
src/backend/nodes/outfuncs.c
src/backend/nodes/outfuncs.c
+1
-18
src/backend/nodes/print.c
src/backend/nodes/print.c
+1
-4
src/include/executor/nodeTee.h
src/include/executor/nodeTee.h
+0
-25
src/include/nodes/execnodes.h
src/include/nodes/execnodes.h
+8
-6
src/include/nodes/nodes.h
src/include/nodes/nodes.h
+1
-3
src/include/nodes/plannodes.h
src/include/nodes/plannodes.h
+3
-1
No files found.
src/backend/commands/explain.c
View file @
344dfc0b
...
...
@@ -4,7 +4,7 @@
*
* Copyright (c) 1994-5, Regents of the University of California
*
* $Id: explain.c,v 1.3
2 1999/02/13 23:15:0
6 momjian Exp $
* $Id: explain.c,v 1.3
3 1999/03/23 16:50:4
6 momjian Exp $
*
*/
#include <stdio.h>
...
...
@@ -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
;
...
...
src/backend/executor/Makefile
View file @
344dfc0b
...
...
@@ -4,7 +4,7 @@
# Makefile for executor
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/executor/Makefile,v 1.
7 1998/04/06 00:22:2
6 momjian Exp $
# $Header: /cvsroot/pgsql/src/backend/executor/Makefile,v 1.
8 1999/03/23 16:50:4
6 momjian Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -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 node
Tee.o node
Group.o spi.o nodeSubplan.o
nodeUnique.o nodeGroup.o spi.o nodeSubplan.o
all
:
SUBSYS.o
...
...
src/backend/executor/nodeTee.c
→
src/backend/executor/
_deadcode/
nodeTee.c
View file @
344dfc0b
...
...
@@ -14,7 +14,7 @@
* ExecInitTee
* ExecEndTee
*
* $Id: nodeTee.c,v 1.
30 1999/02/13 23:15:2
9 momjian Exp $
* $Id: nodeTee.c,v 1.
1 1999/03/23 16:50:4
9 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
src/backend/executor/execAmi.c
View file @
344dfc0b
...
...
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: execAmi.c,v 1.3
2 1999/02/13 23:15:14
momjian Exp $
* $Id: execAmi.c,v 1.3
3 1999/03/23 16:50:47
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -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
;
...
...
src/backend/executor/execMain.c
View file @
344dfc0b
...
...
@@ -26,7 +26,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.8
1 1999/03/20 01:13:21
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.8
2 1999/03/23 16:50:47
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -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
;
...
...
src/backend/executor/execProcnode.c
View file @
344dfc0b
...
...
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/execProcnode.c,v 1.1
3 1999/02/13 23:15:17
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/execProcnode.c,v 1.1
4 1999/03/23 16:50:48
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -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
;
...
...
src/backend/executor/execTuples.c
View file @
344dfc0b
...
...
@@ -14,7 +14,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/execTuples.c,v 1.2
3 1999/02/13 23:15:19
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/execTuples.c,v 1.2
4 1999/03/23 16:50:48
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -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
...
...
src/backend/nodes/outfuncs.c
View file @
344dfc0b
...
...
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: outfuncs.c,v 1.7
7 1999/03/01 00:10:31 tgl
Exp $
* $Id: outfuncs.c,v 1.7
8 1999/03/23 16:50:53 momjian
Exp $
*
* NOTES
* Every (plan) node in POSTGRES has an associated "out" routine which
...
...
@@ -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
;
...
...
src/backend/nodes/print.c
View file @
344dfc0b
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/print.c,v 1.2
5 1999/02/22 01:57:50
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/print.c,v 1.2
6 1999/03/23 16:50:54
momjian Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
...
...
@@ -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
;
...
...
src/include/executor/nodeTee.h
deleted
100644 → 0
View file @
92781fc1
/*-------------------------------------------------------------------------
*
* 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 */
src/include/nodes/execnodes.h
View file @
344dfc0b
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: execnodes.h,v 1.2
6 1999/02/28 00:36:04 tgl
Exp $
* $Id: execnodes.h,v 1.2
7 1999/03/23 16:51:00 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -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 */
src/include/nodes/nodes.h
View file @
344dfc0b
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nodes.h,v 1.4
7 1999/03/07 03:34:11
momjian Exp $
* $Id: nodes.h,v 1.4
8 1999/03/23 16:51:03
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -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)
...
...
src/include/nodes/plannodes.h
View file @
344dfc0b
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: plannodes.h,v 1.2
3 1999/03/01 00:10:36 tgl
Exp $
* $Id: plannodes.h,v 1.2
4 1999/03/23 16:51:04 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment