Tom Lane wrote:

[SNIP: a repetion of my first post ;) ]
I think it should be

/*
* If we already joined IN's RHS to anything else in
* either input path, then this join is not constrained (the
* necessary work was done at a lower level).
*/
if (bms_is_subset(ininfo->righthand, rel1->relids) &&
!bms_equal(ininfo->righthand, rel1->relids))
continue;
if (bms_is_subset(ininfo->righthand, rel2->relids) &&
!bms_equal(ininfo->righthand, rel2->relids))
continue;

Comments?
It's good.
It was pretty much what I was thinking was wrong to begin with.
Whether the generated plans are valid is a different issue ;)

--
Dennis

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 7 of 7 | next ›
Discussion Overview
grouppgsql-hackers @
categoriespostgresql
postedMar 5, '04 at 5:29p
activeMar 8, '04 at 4:04p
posts7
users2
websitepostgresql.org...
irc#postgresql

2 users in discussion

Dennis Haney: 4 posts Tom Lane: 3 posts

People

Translate

site design / logo © 2021 Grokbase