diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 1999-05-01 19:47:42 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 1999-05-01 19:47:42 +0000 |
commit | 605d84941dec8179a9680e9757dc9985272c57ce (patch) | |
tree | 28fa6c1b35c40bfc5558f8d447e9311151405133 /src/backend/optimizer/path/joinpath.c | |
parent | 87d95ca04d0b794c2ba49f40f6a2ee1d94835cac (diff) |
Clean up cost_sort some more: most callers were double-counting
the cost of reading the source data.
Diffstat (limited to 'src/backend/optimizer/path/joinpath.c')
-rw-r--r-- | src/backend/optimizer/path/joinpath.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/backend/optimizer/path/joinpath.c b/src/backend/optimizer/path/joinpath.c index 5edfed65b0e..8b2f5139ecd 100644 --- a/src/backend/optimizer/path/joinpath.c +++ b/src/backend/optimizer/path/joinpath.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/path/joinpath.c,v 1.33 1999/04/03 00:18:28 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/path/joinpath.c,v 1.34 1999/05/01 19:47:42 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -348,7 +348,7 @@ match_unsorted_outer(RelOptInfo *joinrel, (mergeinnerpath->path_cost < (cheapest_inner->path_cost + cost_sort(matchedJoinKeys, innerrel->size, - innerrel->width, false)))); + innerrel->width)))); if (!path_is_cheaper_than_sort) { varkeys = make_pathkeys_from_joinkeys(matchedJoinKeys, @@ -464,8 +464,7 @@ match_unsorted_inner(RelOptInfo *joinrel, if (clauses && matchedJoinKeys) { temp1 = outerrel->cheapestpath->path_cost + - cost_sort(matchedJoinKeys, outerrel->size, outerrel->width, - false); + cost_sort(matchedJoinKeys, outerrel->size, outerrel->width); temp2 = (bool) (FLOAT_IS_ZERO(innerpath->outerjoincost) || (innerpath->outerjoincost > temp1)); |