Re: OR or IN ?

Поиск
Список
Период
Сортировка
От Andrus
Тема Re: OR or IN ?
Дата
Msg-id D71FD5E0C64641B0AF636B66E634A5A6@andrusnotebook
обсуждение исходный текст
Ответ на Re: OR or IN ?  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Ответы Re: OR or IN ?
Список pgsql-general
>> 8.0 (and maybe newer releases also) throw dreaded  "Stack lenght limit
>> exceeded"
>>
>> message if IN contains large number or items.
>
> Have y'all checked them there release notes?  I'm sure they tell the
> tale. (sorry too much True Blood...)

No.  I need to support 8.0.
After those crashes I changed all IN clauses to

docid = ANY ({1,2,3,4,5,7,8,96,5445,.., 34534534})

this takes the same number of characters per id as IN clause.

I hope that this does not have any bad effects.

Andrus.

В списке pgsql-general по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: Annoying Reply-To
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Drop database / database in use question