From: Oliver Jowett <oliver@opencloud.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jasper Potts <jasper@jasperpotts.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Select where id in (LARGE LIST) ?
Date: Wed, 03 Aug 2005 15:23:21 +1200
Message-ID: <42F038A9.2090100@opencloud.com> (raw)
In-Reply-To: <42F03666.8070706@opencloud.com>
References: <42EA4B90.4050606@jasperpotts.com>
<1122651744.2837.196.camel@coppola.muc.ecircle.de>
<42EA811B.10409@jasperpotts.com>
<1122885611.2837.209.camel@coppola.muc.ecircle.de>
<42EF3B8F.1020603@jasperpotts.com>
<42EF4193.3020009@opencloud.com>
<42EF7C7F.5000406@jasperpotts.com>
<42F007BE.8040002@opencloud.com>
<26493.1123036776@sss.pgh.pa.us>
<42F03666.8070706@opencloud.com>
Oliver Jowett wrote:
> 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.
And the end of the stack trace is this:
(... lots of transformExpr() recursion ...)
#11909 0x000000000048d4d2 in transformExpr ()
#11910 0x000000000048d4d2 in transformExpr ()
#11911 0x000000000048d4d2 in transformExpr ()
#11912 0x000000000048aa0e in transformWhereClause ()
#11913 0x0000000000479efc in transformStmt ()
#11914 0x000000000047b596 in do_parse_analyze ()
#11915 0x000000000047cad9 in parse_analyze_varparams ()
#11916 0x00000000005446f5 in exec_parse_message ()
#11917 0x0000000000545fc3 in PostgresMain ()
#11918 0x000000000051da0d in ServerLoop ()
#11919 0x000000000051ee6f in PostmasterMain ()
#11920 0x00000000004ee0af in main ()
-O
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: oliver@opencloud.com, tgl@sss.pgh.pa.us, jasper@jasperpotts.com
Subject: Re: Select where id in (LARGE LIST) ?
In-Reply-To: <42F038A9.2090100@opencloud.com>
References: <42EA4B90.4050606@jasperpotts.com> <1122651744.2837.196.camel@coppola.muc.ecircle.de> <42EA811B.10409@jasperpotts.com> <1122885611.2837.209.camel@coppola.muc.ecircle.de> <42EF3B8F.1020603@jasperpotts.com> <42EF4193.3020009@opencloud.com> <42EF7C7F.5000406@jasperpotts.com> <42F007BE.8040002@opencloud.com> <26493.1123036776@sss.pgh.pa.us> <42F03666.8070706@opencloud.com> <42F038A9.2090100@opencloud.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox