OSDN Git Service

Fix adjust_semi_join to be more cautious about clauseless joins.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 2 Nov 2010 22:45:44 +0000 (18:45 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 2 Nov 2010 22:45:44 +0000 (18:45 -0400)
commit3f36070d72a54b94096e6853b185eb677a658369
tree8281879d309c4b806ee1f79edcd2d9c652b93a7b
parent368e44f6a54a81d036fb85ea0f4544a233d7cf11
Fix adjust_semi_join to be more cautious about clauseless joins.

It was reporting that these were fully indexed (hence cheap), when of
course they're the exact opposite of that.  I'm not certain if the case
would arise in practice, since a clauseless semijoin is hard to produce
in SQL, but if it did happen we'd make some dumb decisions.
src/backend/optimizer/path/costsize.c