Re: Performance Killer 'IN' ? - Mailing list pgsql-general

From Marko Kreen
Subject Re: Performance Killer 'IN' ?
Date
Msg-id e51f66da0604030714q103b709dmb8454a9897c30580@mail.gmail.com
Whole thread Raw
In response to Re: Performance Killer 'IN' ?  (Kai Hessing <kai.hessing@hobsons.de>)
List pgsql-general
On 4/3/06, Kai Hessing <kai.hessing@hobsons.de> wrote:
> Marko Kreen wrote:
> > Just a shot in the dark: does the plan stay the same,
> > when you remove the ' AND status > -1' ?
>
> No difference: I skipped the 'AND status > -1' and have the following
> results...

Ok.  Thanks.  I once had similar query and it seemed that postgres
got confused if there was big IN and alse something else in WHERE
clause.  Dropping the rest got postgres to use index for IN.

But I did not have time to research it then and with your result
seems it's not a problem in recent versions.

--
marko

pgsql-general by date:

Previous
From: "chris smith"
Date:
Subject: Re: what is this error
Next
From: Tom Lane
Date:
Subject: Re: Performance Killer 'IN' ?