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
c1f1a2e0
Commit
c1f1a2e0
authored
Jul 15, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow UNION/UNION ALL in subselects.
parent
2077ce12
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
5 deletions
+33
-5
src/backend/executor/execAmi.c
src/backend/executor/execAmi.c
+5
-1
src/backend/executor/nodeAppend.c
src/backend/executor/nodeAppend.c
+25
-2
src/backend/parser/gram.c
src/backend/parser/gram.c
+1
-1
src/include/executor/nodeAppend.h
src/include/executor/nodeAppend.h
+2
-1
No files found.
src/backend/executor/execAmi.c
View file @
c1f1a2e0
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/execAmi.c,v 1.2
1 1998/06/15 19:28:18
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/execAmi.c,v 1.2
2 1998/07/15 22:16:17
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -369,6 +369,10 @@ ExecReScan(Plan *node, ExprContext *exprCtxt, Plan *parent)
ExecReScanMergeJoin
((
MergeJoin
*
)
node
,
exprCtxt
,
parent
);
break
;
case
T_Append
:
ExecReScanAppend
((
Append
*
)
node
,
exprCtxt
,
parent
);
break
;
/*
* Tee is never used
case T_Tee:
...
...
src/backend/executor/nodeAppend.c
View file @
c1f1a2e0
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/nodeAppend.c,v 1.1
3 1998/07/15 14:54:30
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/nodeAppend.c,v 1.1
4 1998/07/15 22:16:18
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -15,6 +15,7 @@
* ExecInitAppend - initialize the append node
* ExecProcAppend - retrieve the next tuple from the node
* ExecEndAppend - shut down the append node
* ExecReScanAppend - rescan the append node
*
* NOTES
* Each append node contains a list of one or more subplans which
...
...
@@ -34,7 +35,7 @@
* nil nil ... ... ...
* subplans
*
* Append nodes are currently used
to
unions, and to support inheritance
* Append nodes are currently used
for
unions, and to support inheritance
* queries, where several relations need to be scanned.
* For example, in our standard person/student/employee/student-emp
* example, where student and employee inherit from person
...
...
@@ -500,3 +501,25 @@ ExecEndAppend(Append *node)
* appendstate->as_junkfilter_list here
*/
}
void
ExecReScanAppend
(
Append
*
node
,
ExprContext
*
exprCtxt
,
Plan
*
parent
)
{
AppendState
*
appendstate
=
node
->
appendstate
;
int
nplans
=
length
(
node
->
appendplans
);
int
i
;
for
(
i
=
0
;
i
<
nplans
;
i
++
)
{
Plan
*
rescanNode
;
appendstate
->
as_whichplan
=
i
;
rescanNode
=
(
Plan
*
)
nth
(
i
,
node
->
appendplans
);
if
(
rescanNode
->
chgParam
==
NULL
)
{
exec_append_initialize_next
(
node
);
ExecReScan
((
Plan
*
)
rescanNode
,
exprCtxt
,
(
Plan
*
)
node
);
}
}
appendstate
->
as_whichplan
=
0
;
exec_append_initialize_next
(
node
);
}
src/backend/parser/gram.c
View file @
c1f1a2e0
...
...
@@ -218,7 +218,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/gram.c,v 2.1
5 1998/07/15 15:56:34
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/gram.c,v 2.1
6 1998/07/15 22:16:18
momjian Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
...
...
src/include/executor/nodeAppend.h
View file @
c1f1a2e0
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nodeAppend.h,v 1.
7 1997/11/26 01:12:44
momjian Exp $
* $Id: nodeAppend.h,v 1.
8 1998/07/15 22:16:21
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -21,5 +21,6 @@ extern bool ExecInitAppend(Append *node, EState *estate, Plan *parent);
extern
int
ExecCountSlotsAppend
(
Append
*
node
);
extern
TupleTableSlot
*
ExecProcAppend
(
Append
*
node
);
extern
void
ExecEndAppend
(
Append
*
node
);
extern
void
ExecReScanAppend
(
Append
*
node
,
ExprContext
*
exprCtxt
,
Plan
*
parent
);
#endif
/* NODEAPPEND_H */
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