| From: | Luca Ferrari <fluca1978(at)infinito(dot)it> |
|---|---|
| To: | Scott Ribe <scott_ribe(at)killerbytes(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: OR or IN ? |
| Date: | 2008-10-17 14:22:42 |
| Message-ID: | 200810171622.42323.fluca1978@infinito.it |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Friday 17 October 2008 Scott Ribe's cat, walking on the keyboard, wrote:
> Older versions of PG were inefficient with larger numbers of elements in an
> IN query, and in fact would error out with something about lack of stack
> space if you used very many (a few hundred IIRC).
>
> 8.x something was supposed to have improved that. Using 8.3 recently, after
> an "oopsie" with some development data, I inadvertently confirmed that it
> works and performance is not too bad with >34,000 items in an IN clause ;-)
Interesting, since my queries sometimes expand to a few thousands of ORs (or
INs), and I had in fact stack problems and I had to expand it to around 20
MB.....
Luca
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Scott Marlowe | 2008-10-17 14:23:21 | Re: Annoying Reply-To |
| Previous Message | Mikkel Høgh | 2008-10-17 14:15:20 | Re: Annoying Reply-To |