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

Commitc59d8dd

Browse files
committed
Improve pull_up_subqueries logic so that it doesn't insert unnecessary
PlaceHolderVar nodes in join quals appearing in or below the lowestouter join that could null the subquery being pulled up. This improvesthe planner's ability to recognize constant join quals, and probablyhelps with detection of common sort keys (equivalence classes) as well.
1 parent636edd5 commitc59d8dd

File tree

3 files changed

+148
-71
lines changed

3 files changed

+148
-71
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-
* $PostgreSQL: pgsql/src/backend/optimizer/plan/planner.c,v 1.254 2009/04/19 19:46:33 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/optimizer/plan/planner.c,v 1.255 2009/04/28 21:31:16 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -324,7 +324,7 @@ subquery_planner(PlannerGlobal *glob, Query *parse,
324324
* this query.
325325
*/
326326
parse->jointree= (FromExpr*)
327-
pull_up_subqueries(root, (Node*)parse->jointree,false, false);
327+
pull_up_subqueries(root, (Node*)parse->jointree,NULL,NULL);
328328

329329
/*
330330
* Detect whether any rangetable entries are RTE_JOIN kind; if not, we can

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp