Re: max_expr_depth - Mailing list pgsql-general

From Doug McNaught
Subject Re: max_expr_depth
Date
Msg-id m3vgltb7y4.fsf@belphigor.mcnaught.org
Whole thread Raw
In response to max_expr_depth  (Joseph Shraibman <jks@selectacast.net>)
List pgsql-general
Joseph Shraibman <jks@selectacast.net> writes:

> I recently tried to do a big update with postgres 7.1.2.  The update was
> something like
> UPDATE table SET status = 2 WHERE id IN (a few thousand entries)  AND
> status = 1;
>
>
> and I got:
> ERROR:  Expression too complex: nesting depth exceeds max_expr_depth =
> 10000

Most likely your IN clause is too big.  Try loading those few thousand
entries into a temporary table and doing a join.

-Doug
--
The rain man gave me two cures; he said jump right in,
The first was Texas medicine--the second was just railroad gin,
And like a fool I mixed them, and it strangled up my mind,
Now people just get uglier, and I got no sense of time...          --Dylan

pgsql-general by date:

Previous
From: Ryan Mahoney
Date:
Subject: Re: max_expr_depth
Next
From: Joseph Shraibman
Date:
Subject: Re: max_expr_depth