Re: IN joining - Mailing list pgsql-hackers

From Dennis Haney
Subject Re: IN joining
Date
Msg-id 404C99A0.7050808@diku.dk
Whole thread Raw
In response to Re: IN joining  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: one byte data type
Next
From: Shachar Shemesh
Date:
Subject: Re: one byte data type