Re: Processing long AND/OR lists - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: Processing long AND/OR lists
Date
Msg-id 51A22B0A.406@agliodbs.com
Whole thread Raw
In response to Processing long AND/OR lists  (Gurjeet Singh <gurjeet@singh.im>)
Responses Re: Processing long AND/OR lists  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 05/25/2013 09:56 AM, Gurjeet Singh wrote:
> When Postgres encounters a long list of AND/OR chains, it errors out at
> check_stack_depth() after a limit of few thousand. At around 10,000
> elements, the recursion at assign_expr_collations() causes the error. But
> at a little higher element count, around 15,000, the recursion check errors
> out a little earlier, in the stack around transformAExprAnd(). The test
> queries were generated using the attached test.sh script.

***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 ...

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Planning incompatibilities for Postgres 10.0
Next
From: Heikki Linnakangas
Date:
Subject: Re: [BUGS] COPY .... (FORMAT binary) syntax doesn't work