"Brendan Jurd" <[EMAIL PROTECTED]> writes:
> I guess my question is, what's the real benefit of going to all this
> trouble trying to prove that clauses are false?

Not having to scan gigabytes of data in an excluded partition, for
instance.

Now the docs do say

        Currently, constraint_exclusion is disabled by default because
        the constraint checks are relatively expensive, and in many
        circumstances will yield no savings. It is recommended to turn
        this on only if you are actually using partitioned tables
        designed to take advantage of the feature. 

so we could argue that it's the OP's own fault if he turns this option
on for queries where long planning time isn't worth the trouble.

                        regards, tom lane

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to