Re: FW: Query length limitation in postgres server > 8.2.9 - Mailing list pgsql-sql

From Tom Lane
Subject Re: FW: Query length limitation in postgres server > 8.2.9
Date
Msg-id 3760.1247014700@sss.pgh.pa.us
Whole thread Raw
In response to Re: FW: Query length limitation in postgres server > 8.2.9  (Greg Stark <gsstark@mit.edu>)
List pgsql-sql
Greg Stark <gsstark@mit.edu> writes:
> On Tue, Jul 7, 2009 at 11:33 PM, <jacob@aers.ca> wrote:
>> After some investigation it seems that the new server is refusing to use the index's but if I
>> limit the number of arguments in the latter part of the statement to 100 then it works as
>> expected in the expected amount of time using the indexs.

> Ugh, I thought this sounded familiar. I think you're hitting this
> limit which was put in place in 8.2.12 to protect against very slow
> planning times for very long IN lists:

Nonsense ... unless perhaps the index is partial, and the IN condition
is relevant to proving it's legal to use the index?  Given the lack of
any schema information in the complaint, I suppose I can't rule that
out, but one would hope the OP would have mentioned such a thing.
        regards, tom lane


pgsql-sql by date:

Previous
From: Greg Stark
Date:
Subject: Re: FW: Query length limitation in postgres server > 8.2.9
Next
From: nha
Date:
Subject: Re: Recording how a table is used