OSDN Git Service

allpaths.c:find_join_paths(): compute_rel_size() shouldn't be called
authorVadim B. Mikheev <vadim4o@yahoo.com>
Thu, 5 Jun 1997 09:33:52 +0000 (09:33 +0000)
committerVadim B. Mikheev <vadim4o@yahoo.com>
Thu, 5 Jun 1997 09:33:52 +0000 (09:33 +0000)
commit11073bee5cc573967627cc114698bc5412e4f919
treeafe3fc2f853f56acb84f0bfd30d35a11514e65fe
parent39c73eff63693fdca415000bbc0f604cdd4c5de6
allpaths.c:find_join_paths(): compute_rel_size() shouldn't be called
for join-relations. Sizes already computed by
prune_rel_paths():compute_joinrel_size().

joinrels.c:
<                   if ( _use_right_sided_plans_ )
---
>                   if ( _use_right_sided_plans_ &&
>                               length (outer_rel->relids) > 1 )

 - r_plans are useful when outer_rel is join-relation... It
decreases the size of search space...
src/backend/optimizer/path/allpaths.c
src/backend/optimizer/path/joinrels.c