Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 64a32f9

Browse files
committed
Department of second thoughts: can't reorder merge-join clauses.
1 parent 743f667 commit 64a32f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/optimizer/plan/createplan.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.156 2003/08/26 22:56:51 tgl Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.157 2003/08/27 12:44:12 tgl Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -1000,9 +1000,9 @@ create_mergejoin_plan(Query *root,
10001000
best_path->jpath.outerjoinpath->parent->relids);
10011001

10021002
/* Sort clauses into best execution order */
1003+
/* NB: do NOT reorder the mergeclauses */
10031004
joinclauses = order_qual_clauses(root, joinclauses);
10041005
otherclauses = order_qual_clauses(root, otherclauses);
1005-
mergeclauses = order_qual_clauses(root, mergeclauses);
10061006

10071007
/*
10081008
* Create explicit sort nodes for the outer and inner join paths if

0 commit comments

Comments
 (0)