Re: Select where id in (LARGE LIST) ? - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Select where id in (LARGE LIST) ?
Date
Msg-id 42F03666.8070706@opencloud.com
Whole thread Raw
In response to Re: Select where id in (LARGE LIST) ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Select where id in (LARGE LIST) ?  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-jdbc
Tom Lane wrote:
> Oliver Jowett <oliver@opencloud.com> writes:
>
>>There may be a (backend) limit on the number of parameters in a query,
>>not sure.
>
>
> I'm pretty certain there's no hard limit.  However, I doubt anyone has
> tested with thousands of parameters ... there might well be performance
> issues, such as loops that are O(N^2) in the number of parameters.
> Feel free to send along problem cases.

With a really big IN list (16384 triggered it, 8192 didn't) I get
"ERROR: stack depth limit exceeded", though I guess this is more a limit
in the handling of IN than a number-of-parameters limit per se.

-O

pgsql-jdbc by date:

Previous
From: Tom Lane
Date:
Subject: Re: Select where id in (LARGE LIST) ?
Next
From: Oliver Jowett
Date:
Subject: Re: Select where id in (LARGE LIST) ?