| От | Tom Lane |
|---|---|
| Тема | Re: Open a Transaction |
| Дата | |
| Msg-id | 27204.1170956067@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Open a Transaction ("Ezequias Rodrigues da Rocha" <ezequias.rocha@gmail.com>) |
| Список | pgsql-sql |
"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
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера