Re: Constraint Exclusion (Partitioning) - Initial Review - Mailing list pgsql-patches

From Tom Lane
Subject Re: Constraint Exclusion (Partitioning) - Initial Review
Date
Msg-id 23470.1120450572@sss.pgh.pa.us
Whole thread Raw
In response to Re: Constraint Exclusion (Partitioning) - Initial Review  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Simon Riggs wrote:
>>> Oh, why would someone want to set enable_constraint_exclusion to false?
>>
>> The included functionality performs the exclusion at plan time. If a
>> query was prepared for later execution, it *could* return the wrong
>> answer when the plan was executed at a later time since plans are not
>> invalidated when constraints change. So, in general, this should be set
>> to false except for circumstances where the user can guarantee no such
>> mistake would be made.

> Ah, so there is a small additional restriction (changing constraints on
> planned queries) that this would affect.

This is a stopgap until we have automatic plan invalidation.

            regards, tom lane

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] HEAD doesn't cope with libraries in non-default
Next
From: Neil Conway
Date:
Subject: Re: tiny patch to fic unixware build