]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Make cost estimates for SubqueryScan more realistic: charge cpu_tuple_cost
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Jul 2003 22:35:54 +0000 (22:35 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Jul 2003 22:35:54 +0000 (22:35 +0000)
commit3d09f6c5609da36270c77b24f87313eac94a7635
tree7405aa50f97c4e0ab57c98bfe98e5755c771f029
parentb800196230c7eca35d781df39cf3a4b739c86300
Make cost estimates for SubqueryScan more realistic: charge cpu_tuple_cost
for each row processed, and don't forget the evaluation cost of any
restriction clauses attached to the node.  Per discussion with Greg Stark.
src/backend/optimizer/path/costsize.c
src/backend/optimizer/plan/createplan.c
src/backend/optimizer/util/pathnode.c
src/include/optimizer/cost.h