Re: Constraint Exclusion (Partitioning) - Initial Review

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Constraint Exclusion (Partitioning) - Initial Review
Дата
Msg-id 23470.1120450572@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Constraint Exclusion (Partitioning) - Initial Review  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] HEAD doesn't cope with libraries in non-default
Следующее
От: Neil Conway
Дата:
Сообщение: Re: tiny patch to fic unixware build