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

Commit6f33c17

Browse files
committed
Produce slightly saner-looking EXPLAIN output for a Result node.
1 parentc969fed commit6f33c17

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

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

Lines changed: 11 additions & 2 deletions
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.108 2001/08/2116:36:03 tgl Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.109 2001/09/2104:06:04 tgl Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -1827,7 +1827,16 @@ make_result(List *tlist,
18271827
#ifdefNOT_USED
18281828
tlist=generate_fjoin(tlist);
18291829
#endif
1830-
copy_plan_costsize(plan,subplan);
1830+
if (subplan)
1831+
copy_plan_costsize(plan,subplan);
1832+
else
1833+
{
1834+
plan->startup_cost=0;
1835+
plan->total_cost=cpu_tuple_cost;
1836+
plan->plan_rows=1;/* wrong if we have a set-valued function? */
1837+
plan->plan_width=0;/* XXX try to be smarter? */
1838+
}
1839+
18311840
plan->state= (EState*)NULL;
18321841
plan->targetlist=tlist;
18331842
plan->qual=NIL;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp