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
73e3edf2
Commit
73e3edf2
authored
Aug 26, 2003
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Push subplan clauses to the back in qual lists for join plans, not
only scan plans. Per observation from Rod Taylor.
parent
147c1649
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
src/backend/optimizer/plan/createplan.c
src/backend/optimizer/plan/createplan.c
+15
-1
No files found.
src/backend/optimizer/plan/createplan.c
View file @
73e3edf2
...
...
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.15
5 2003/08/17 19:58:05
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.15
6 2003/08/26 22:56:51
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -944,6 +944,10 @@ create_nestloop_plan(Query *root,
otherclauses
=
NIL
;
}
/* Sort clauses into best execution order */
joinclauses
=
order_qual_clauses
(
root
,
joinclauses
);
otherclauses
=
order_qual_clauses
(
root
,
otherclauses
);
join_plan
=
make_nestloop
(
tlist
,
joinclauses
,
otherclauses
,
...
...
@@ -995,6 +999,11 @@ create_mergejoin_plan(Query *root,
mergeclauses
=
get_switched_clauses
(
best_path
->
path_mergeclauses
,
best_path
->
jpath
.
outerjoinpath
->
parent
->
relids
);
/* Sort clauses into best execution order */
joinclauses
=
order_qual_clauses
(
root
,
joinclauses
);
otherclauses
=
order_qual_clauses
(
root
,
otherclauses
);
mergeclauses
=
order_qual_clauses
(
root
,
mergeclauses
);
/*
* Create explicit sort nodes for the outer and inner join paths if
* necessary. The sort cost was already accounted for in the path.
...
...
@@ -1078,6 +1087,11 @@ create_hashjoin_plan(Query *root,
hashclauses
=
get_switched_clauses
(
best_path
->
path_hashclauses
,
best_path
->
jpath
.
outerjoinpath
->
parent
->
relids
);
/* Sort clauses into best execution order */
joinclauses
=
order_qual_clauses
(
root
,
joinclauses
);
otherclauses
=
order_qual_clauses
(
root
,
otherclauses
);
hashclauses
=
order_qual_clauses
(
root
,
hashclauses
);
/*
* Extract the inner hash keys (right-hand operands of the
* hashclauses) to put in the Hash 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