Re: Strange postgres planner behaviour

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Sergey E(dot) Koposov" <math(at)sai(dot)msu(dot)ru>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Strange postgres planner behaviour
Date: 2005-03-13 04:58:40
Message-ID: 14092.1110689920@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"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.

In the meantime you might try expressing your query as a UNION.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2005-03-13 05:31:15 Question about encoding combinations
Previous Message Sergey E. Koposov 2005-03-13 01:58:58 Strange postgres planner behaviour