From: | Dennis Haney <davh(at)diku(dot)dk> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: IN joining |
Date: | 2004-03-08 16:04:48 |
Message-ID: | 404C99A0.7050808@diku.dk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Shachar Shemesh | 2004-03-08 16:13:00 | Re: one byte data type |
Previous Message | Tom Lane | 2004-03-08 15:58:14 | Re: one byte data type |