Re: Open a Transaction

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ezequias Rodrigues da Rocha" <ezequias(dot)rocha(at)gmail(dot)com>
Cc: Joe <dev(at)freedomcircle(dot)net>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Open a Transaction
Date: 2007-02-08 17:34:27
Message-ID: 27204.1170956067@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Ezequias Rodrigues da Rocha" <ezequias(dot)rocha(at)gmail(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Ezequias Rodrigues da Rocha 2007-02-08 17:42:11 Re: Open a Transaction
Previous Message Andrew Sullivan 2007-02-08 17:27:15 Re: Open a Transaction