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
c31bcbc8
Commit
c31bcbc8
authored
Nov 30, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Repair failure to mark an inserted Materialize node with the appropriate
extParam/locParam lists. Per bug #526.
parent
22a6a7e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
src/backend/optimizer/plan/subselect.c
src/backend/optimizer/plan/subselect.c
+14
-3
No files found.
src/backend/optimizer/plan/subselect.c
View file @
c31bcbc8
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/subselect.c,v 1.
49 2001/03/22 03:59:37 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/subselect.c,v 1.
50 2001/11/30 19:24:15 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -324,6 +324,12 @@ make_subplan(SubLink *slink)
...
@@ -324,6 +324,12 @@ make_subplan(SubLink *slink)
* is anything more complicated than a plain sequential scan, and
* is anything more complicated than a plain sequential scan, and
* we do it even for seqscan if the qual appears selective enough
* we do it even for seqscan if the qual appears selective enough
* to eliminate many tuples.
* to eliminate many tuples.
*
* XXX It's pretty ugly to be inserting a MATERIAL node at this
* point. Since subquery_planner has already run SS_finalize_plan
* on the subplan tree, we have to kluge up parameter lists for
* the MATERIAL node. Possibly this could be fixed by postponing
* SS_finalize_plan processing until setrefs.c is run.
*/
*/
if
(
node
->
parParam
==
NIL
)
if
(
node
->
parParam
==
NIL
)
{
{
...
@@ -362,8 +368,13 @@ make_subplan(SubLink *slink)
...
@@ -362,8 +368,13 @@ make_subplan(SubLink *slink)
}
}
if
(
use_material
)
if
(
use_material
)
{
{
plan
=
(
Plan
*
)
make_material
(
plan
->
targetlist
,
plan
);
Plan
*
matplan
;
node
->
plan
=
plan
;
matplan
=
(
Plan
*
)
make_material
(
plan
->
targetlist
,
plan
);
/* kluge --- see comments above */
matplan
->
extParam
=
listCopy
(
plan
->
extParam
);
matplan
->
locParam
=
listCopy
(
plan
->
locParam
);
node
->
plan
=
plan
=
matplan
;
}
}
}
}
...
...
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