Re: [HACKERS] Fix a typo in execReplication.c

Поиск
Список
Период
Сортировка
От Masahiko Sawada
Тема Re: [HACKERS] Fix a typo in execReplication.c
Дата
Msg-id CAD21AoAu7WcJiiUaxnR_bZphf_0xW2nQZZgXkdznkhPv7AwQSQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Fix a typo in execReplication.c  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: [HACKERS] Fix a typo in execReplication.c  (Petr Jelinek <petr.jelinek@2ndquadrant.com>)
Список pgsql-hackers
On Thu, Oct 12, 2017 at 5:02 AM, Robert Haas <robertmhaas@gmail.com> wrote:
> On Mon, Oct 9, 2017 at 10:59 PM, Masahiko Sawada <sawada.mshk@gmail.com> wrote:
>> Attached a patch for $subject. ISTM these are mistakes of copy-and-paste.
>
> Committed, but isn't the code itself wrong as well in the DELETE case?
>
>     /* BEFORE ROW DELETE Triggers */
>     if (resultRelInfo->ri_TrigDesc &&
>         resultRelInfo->ri_TrigDesc->trig_update_before_row)
>     {
>         skip_tuple = !ExecBRDeleteTriggers(estate, epqstate, resultRelInfo,
>                                            &searchslot->tts_tuple->t_self,
>                                            NULL);
>     }
>
> Why not trig_delete_before_row?
>

Thank you!
I think you're right. It should be trig_delete_before_row and be
back-patched to 10. Attached patch fixes it.

Regards,

--
Masahiko Sawada
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

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

Вложения

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] show precise repos version for dev builds?
Следующее
От: Peter Eisentraut
Дата:
Сообщение: [HACKERS] replace GrantObjectType with ObjectType