Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf67a931

Browse files
committed
Make WHERE conditions pulled up from subqueries be executed before outer
WHERE conditions, if there is no reason to do it differently.
1 parentb1ac89f commitf67a931

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/optimizer/plan/planner.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.119 2002/05/18 18:49:41 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.120 2002/06/13 15:10:25 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -656,7 +656,7 @@ preprocess_jointree(Query *parse, Node *jtnode)
656656
if (childlen <=1|| (childlen+myothers) <=geqo_rels /2)
657657
{
658658
newlist=nconc(newlist,subf->fromlist);
659-
f->quals=make_and_qual(f->quals,subf->quals);
659+
f->quals=make_and_qual(subf->quals,f->quals);
660660
}
661661
else
662662
newlist=lappend(newlist,child);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp