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

Commiteb4c723

Browse files
committed
Make ExecInitExpr build the list of SubPlans found in a plan tree in order
of discovery, rather than reverse order. This doesn't matter functionally(I suppose the previous coding dates from the time when lcons was markedlycheaper than lappend). However now that EXPLAIN is labeling subplans withIDs that are based on order of creation, this may help produce a slightlyless surprising printout.
1 parentfbcce08 commiteb4c723

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/executor/execQual.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/executor/execQual.c,v 1.244 2009/04/02 22:39:29 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/executor/execQual.c,v 1.245 2009/04/05 20:32:06 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -4326,7 +4326,7 @@ ExecInitExpr(Expr *node, PlanState *parent)
43264326
sstate=ExecInitSubPlan(subplan,parent);
43274327

43284328
/* Add SubPlanState nodes to parent->subPlan */
4329-
parent->subPlan=lcons(sstate,parent->subPlan);
4329+
parent->subPlan=lappend(parent->subPlan,sstate);
43304330

43314331
state= (ExprState*)sstate;
43324332
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp