Re: max_expr_depth
| От | Doug McNaught |
|---|---|
| Тема | Re: max_expr_depth |
| Дата | |
| Msg-id | m3vgltb7y4.fsf@belphigor.mcnaught.org обсуждение исходный текст |
| Ответ на | max_expr_depth (Joseph Shraibman <jks@selectacast.net>) |
| Список | 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 по дате отправления: