Re: Processing long AND/OR lists

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Processing long AND/OR lists
Date: 2013-05-26 15:46:49
Message-ID: 13585.1369583209@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Josh Berkus <josh(at)agliodbs(dot)com> writes:
> ***15,000***? I'd say that someone has an application design issue.
> Fixing the stack overflow is a good thing, but that query is never going
> to return ...

Yeah, the parser's stack consumption seems like only the tip of the
iceberg here.

I find it hard to visualize a use-case for so many AND'ed conditions
anyway. I could believe a lot of OR'd conditions, but very likely it
would be a list that could and should be converted to an IN condition.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2013-05-26 16:10:49 Re: [HACKERS] COPY .... (FORMAT binary) syntax doesn't work
Previous Message Heikki Linnakangas 2013-05-26 15:35:47 Re: [BUGS] COPY .... (FORMAT binary) syntax doesn't work