Re: Needless additional partition check in INSERT?

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: Needless additional partition check in INSERT?
Дата
Msg-id CAKJS1f_XxaAUQVgxGZOtyBs1Tk6H_SL9J6YLTyhkOnds3sZmXg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Needless additional partition check in INSERT?  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
Ответы Re: Needless additional partition check in INSERT?  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
Список pgsql-hackers
On 7 June 2018 at 16:05, Amit Langote <Langote_Amit_f8@lab.ntt.co.jp> wrote:
> Or we could just not have a separate function and put the logic that
> determines whether or not to check the partition constraint right before
> the following piece of code in ExecConstraints
>
>     if (check_partition_constraint && resultRelInfo->ri_PartitionCheck &&
>         !ExecPartitionCheck(resultRelInfo, slot, estate))
>         ExecPartitionCheckEmitError(resultRelInfo, slot, estate);

I don't think so. The function Alvaro is talking about is specific to
inserting a tuple into a table. The place you're proposing to put the
call to it is not.

-- 
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: Needless additional partition check in INSERT?
Следующее
От: David Rowley
Дата:
Сообщение: Re: Needless additional partition check in INSERT?