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
4f807be2
Commit
4f807be2
authored
Jul 16, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch for ReScan of Group.
parent
c1f1a2e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
src/backend/executor/execAmi.c
src/backend/executor/execAmi.c
+7
-1
src/backend/executor/nodeGroup.c
src/backend/executor/nodeGroup.c
+10
-1
src/include/executor/nodeGroup.h
src/include/executor/nodeGroup.h
+2
-1
No files found.
src/backend/executor/execAmi.c
View file @
4f807be2
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/execAmi.c,v 1.2
2 1998/07/15 22:16:17
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/execAmi.c,v 1.2
3 1998/07/16 01:49:18
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -42,9 +42,11 @@
#include "executor/nodeHashjoin.h"
#include "executor/nodeHash.h"
#include "executor/nodeAgg.h"
#include "executor/nodeGroup.h"
#include "executor/nodeResult.h"
#include "executor/nodeUnique.h"
#include "executor/nodeMergejoin.h"
#include "executor/nodeAppend.h"
#include "executor/nodeSubplan.h"
#include "executor/execdebug.h"
#include "optimizer/internal.h"
/* for _TEMP_RELATION_ID_ */
...
...
@@ -353,6 +355,10 @@ ExecReScan(Plan *node, ExprContext *exprCtxt, Plan *parent)
ExecReScanAgg
((
Agg
*
)
node
,
exprCtxt
,
parent
);
break
;
case
T_Group
:
ExecReScanGroup
((
Group
*
)
node
,
exprCtxt
,
parent
);
break
;
case
T_Result
:
ExecReScanResult
((
Result
*
)
node
,
exprCtxt
,
parent
);
break
;
...
...
src/backend/executor/nodeGroup.c
View file @
4f807be2
...
...
@@ -13,7 +13,7 @@
* columns. (ie. tuples from the same group are consecutive)
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/nodeGroup.c,v 1.
19 1998/06/15 19:28:21
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/nodeGroup.c,v 1.
20 1998/07/16 01:49:18
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -417,3 +417,12 @@ sameGroup(HeapTuple oldtuple,
return
TRUE
;
}
void
ExecReScanGroup
(
Group
*
node
,
ExprContext
*
exprCtxt
,
Plan
*
parent
)
{
GroupState
*
grpstate
=
node
->
grpstate
;
grpstate
->
grp_useFirstTuple
=
FALSE
;
grpstate
->
grp_done
=
FALSE
;
}
src/include/executor/nodeGroup.h
View file @
4f807be2
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nodeGroup.h,v 1.
5 1997/11/26 01:12:46
momjian Exp $
* $Id: nodeGroup.h,v 1.
6 1998/07/16 01:49:19
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -21,5 +21,6 @@ extern TupleTableSlot *ExecGroup(Group *node);
extern
bool
ExecInitGroup
(
Group
*
node
,
EState
*
estate
,
Plan
*
parent
);
extern
int
ExecCountSlotsGroup
(
Group
*
node
);
extern
void
ExecEndGroup
(
Group
*
node
);
extern
void
ExecReScanGroup
(
Group
*
node
,
ExprContext
*
exprCtxt
,
Plan
*
parent
);
#endif
/* NODEGROUP_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