diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-01-13 00:29:26 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-01-13 00:29:26 +0000 |
commit | 8ac6d952cfa98f024a788bd0699dc1c0cd448af0 (patch) | |
tree | d4dae28030ca6bf7ee67f612d41be1bbb421d3b0 /src/backend/optimizer/plan/subselect.c | |
parent | d1686b42ab58ce29777557f52b941fa9b927b2a6 (diff) | |
download | postgresql-8ac6d952cfa98f024a788bd0699dc1c0cd448af0.tar.gz postgresql-8ac6d952cfa98f024a788bd0699dc1c0cd448af0.zip |
Cause planner to account for evaluation costs in targetlists and
HAVING quals. Normally this is an insignificant effect --- but it
will not be insignificant when these clauses contain sub-selects.
The added costs cannot affect the planning of the query containing
them, but they might have an impact when the query is a sub-query
of a larger one.
Diffstat (limited to 'src/backend/optimizer/plan/subselect.c')
-rw-r--r-- | src/backend/optimizer/plan/subselect.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/optimizer/plan/subselect.c b/src/backend/optimizer/plan/subselect.c index 2feaff11f75..42da081e059 100644 --- a/src/backend/optimizer/plan/subselect.c +++ b/src/backend/optimizer/plan/subselect.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/subselect.c,v 1.64 2003/01/12 04:03:34 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/subselect.c,v 1.65 2003/01/13 00:29:26 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -378,6 +378,8 @@ make_subplan(SubLink *slink, List *lefthand) plan->plan_width); matplan->startup_cost = matpath.startup_cost; matplan->total_cost = matpath.total_cost; + matplan->plan_rows = plan->plan_rows; + matplan->plan_width = plan->plan_width; /* parameter kluge --- see comments above */ matplan->extParam = listCopy(plan->extParam); matplan->locParam = listCopy(plan->locParam); |