Re: OR or IN ?

From: "Andrus" <kobruleht2(at)hot(dot)ee>
To: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: OR or IN ?
Date: 2008-10-17 15:32:09
Message-ID: D71FD5E0C64641B0AF636B66E634A5A6@andrusnotebook
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message brian 2008-10-17 15:42:06 Re: Question about NOT NULL and default values.
Previous Message Stephen Frost 2008-10-17 15:29:28 Re: Annoying Reply-To