projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
639a32a
)
genericcostestimate() neglected to include qual startup cost in
author
Tom Lane
<tgl@sss.pgh.pa.us>
Fri, 27 Feb 2004 21:44:44 +0000
(21:44 +0000)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Fri, 27 Feb 2004 21:44:44 +0000
(21:44 +0000)
indexTotalCost. I think this may not make any real difference in 7.4,
but it definitely is a problem with CVS tip's new equation.
src/backend/utils/adt/selfuncs.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/adt/selfuncs.c
b/src/backend/utils/adt/selfuncs.c
index 59ef66bace302a79b1400916cbcb67edce5d794a..ddede1d654826cea533aa80fb626637c1f43ef44 100644
(file)
--- a/
src/backend/utils/adt/selfuncs.c
+++ b/
src/backend/utils/adt/selfuncs.c
@@
-3977,7
+3977,7
@@
genericcostestimate(Query *root, RelOptInfo *rel,
*/
cost_qual_eval(&index_qual_cost, indexQuals);
*indexStartupCost = index_qual_cost.startup;
- *indexTotalCost = numIndexPages +
+ *indexTotalCost = numIndexPages +
index_qual_cost.startup +
(cpu_index_tuple_cost + index_qual_cost.per_tuple) * numIndexTuples;
/*