From: | Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "Sergey E(dot) Koposov" <math(at)sai(dot)msu(dot)ru>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Strange postgres planner behaviour |
Date: | 2005-03-13 14:26:05 |
Message-ID: | Pine.GSO.4.62.0503131723210.5508@ra.sai.msu.su |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sat, 12 Mar 2005, Tom Lane wrote:
> "Sergey E. Koposov" <math(at)sai(dot)msu(dot)ru> writes:
>> I want to descibe some strange behaviour of the postgres planner.
>
> It's not strange exactly: the mechanism for OR indexscan and the
> mechanism for nestloop join indexscan are separate and don't talk
> to each other. So you don't get to have a join inner indexscan that
> involves an OR condition.
>
> I have some vague ideas about replacing orindxpath.c entirely, once
> we have some infrastructure for doing OR indexscans via bitmap union.
> But it's not just around the corner.
for 8.1, probably ?
>
> In the meantime you might try expressing your query as a UNION.
Hmm, I'm wondering if the table will be reades as much as the number
of UNIONs or there is some optimization ?
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83
From | Date | Subject | |
---|---|---|---|
Next Message | Chris Mair | 2005-03-13 14:34:13 | Re: TODO item: support triggers on columns |
Previous Message | Oleg Bartunov | 2005-03-13 14:23:02 | Re: REL8_0_STABLE and 8.0.1 release client logging difference |