Re: Constraint exclusion on UNION ALL subqueries with WHERE conditions - Mailing list pgsql-performance

From Gunnlaugur Þór Briem
Subject Re: Constraint exclusion on UNION ALL subqueries with WHERE conditions
Date
Msg-id 6377661.339.1316684605118.JavaMail.geo-discussion-forums@yqih9
Whole thread Raw
In response to Re: Constraint exclusion on UNION ALL subqueries with WHERE conditions  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
Right, the view that prompted this involved subqueries; the function was just an artificial test case.

That change seems like a good one for sure.

Ideally I'd like to enable it for a particular view rather than incur the planning expense for the whole DB (something
likeALTER VIEW foo WITH CONSTRAINT EXCLUSION), but I guess there's no support currently (and not easily added) for such
per-objectplanner settings? The application can just issue SET constraint_exclusion=on; as needed; for my case that's
fine,but for DBAs maybe a bit limiting. 

Regards,

- Gulli

pgsql-performance by date:

Previous
From: Jeff Davis
Date:
Subject: Re: IN or EXISTS
Next
From: "M. D."
Date:
Subject: slow query on tables with new columns added.