Re: Possible segfault when sending notification within a ProcessUtility hook

Поиск
Список
Период
Сортировка
От Anthonin Bonnefoy
Тема Re: Possible segfault when sending notification within a ProcessUtility hook
Дата
Msg-id CAO6_Xqr9wS4uGOzpaHKXA5BaJZoVHu6Gy8N_WZctKHf1jF49EQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Possible segfault when sending notification within a ProcessUtility hook  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> On Tue, Dec 5, 2023 at 9:03 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Why should we regard that as anything other than a bug in the
> ProcessUtility hook?  A failed transaction should not send any
> notifies.

Fair point. That was also my initial assumption but I thought that the
transaction
state was not available from a hook as I've missed
IsAbortedTransactionBlockState.

I will rely on IsAbortedTransactionBlockState to avoid this case,
thanks for the input.

Regards,
Anthonin.



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Bug in nbtree optimization to skip > operator comparisons (or < comparisons in backwards scans)
Следующее
От: jian he
Дата:
Сообщение: Re: SQL:2011 application time