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

Commit4469eb6

Browse files
committed
Cost cleanup.
1 parentd3f0e87 commit4469eb6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.18 1997/12/18 12:20:30 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.19 1997/12/18 12:30:43 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1114,7 +1114,7 @@ make_agg(List *tlist, int nagg, Aggreg **aggs, Plan *lefttree)
11141114
node->plan.state= (EState*)NULL;
11151115
node->plan.qual=NULL;
11161116
node->plan.targetlist=tlist;
1117-
node->plan.lefttree=(Plan*)NULL;
1117+
node->plan.lefttree=lefttree;
11181118
node->plan.righttree= (Plan*)NULL;
11191119
node->numAgg=nagg;
11201120
node->aggs=aggs;

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planmain.c,v 1.9 1997/12/1803:03:38 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planmain.c,v 1.10 1997/12/1812:30:44 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -200,8 +200,7 @@ query_planner(Query *root,
200200
*/
201201
if (root->qry_aggs)
202202
{
203-
aggplan=make_agg(tlist,root->qry_numAgg,root->qry_aggs);
204-
aggplan->plan.lefttree=subplan;
203+
aggplan=make_agg(tlist,root->qry_numAgg,root->qry_aggs,subplan);
205204

206205
/*
207206
* set the varno/attno entries to the appropriate references to

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp