pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
Cc: Joe <dev@freedomcircle.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Open a Transaction
Date: Thu, 08 Feb 2007 12:34:27 -0500
Message-ID: <27204.1170956067@sss.pgh.pa.us> (raw)
In-Reply-To: <55c095e90702080913k5a769f28x8946f252f02571cb@mail.gmail.com>
References: <55c095e90702080850re95fc47j95afdea67579c933@mail.gmail.com>
	<1170953767.697.44.camel@pampa>
	<55c095e90702080913k5a769f28x8946f252f02571cb@mail.gmail.com>

"Ezequias Rodrigues da Rocha" <ezequias.rocha@gmail.com> writes:
> Now the sql is OK but now I have the following error:

> ERROR: stack depth limit exceeded
> SQL state: 54001
> Hint: Increase the configuration parameter "max_stack_depth".

> In the previous e-mail I hide the numbers of itens of my set
> (in(234,12332,1232,....) actually I have more than 36000 subsets of my IN
> statement.

That's probably well past the point at which you should expect IN (list)
to give reasonable performance.  Instead consider putting the values
into a temp table and writing a join or IN (subselect) against the temp table.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <27204.1170956067@sss.pgh.pa.us>
Permalink:  ../27204.1170956067@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27204.1170956067@sss.pgh.pa.us

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ezequias.rocha@gmail.com, dev@freedomcircle.net
  Subject: Re: Open a Transaction
  In-Reply-To: <27204.1170956067@sss.pgh.pa.us>

* 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