Re: On login trigger: take three

Поиск
Список
Период
Сортировка
От Sergey Shinderuk
Тема Re: On login trigger: take three
Дата
Msg-id fa1a8256-e0b8-1da7-960c-d745a73e33e6@postgrespro.ru
обсуждение исходный текст
Ответ на Re: On login trigger: take three  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
On 20.09.2022 17:10, Daniel Gustafsson wrote:
>> On 20 Sep 2022, at 15:43, Sergey Shinderuk <s.shinderuk@postgrespro.ru> wrote: 
>> There is a race around setting and clearing of dathasloginevt.
> 
> Thanks for the report!  The whole dathasloginevt mechanism is IMO too clunky
> and unelegant to go ahead with, I wouldn't be surprised if there are other bugs
> lurking there.
Indeed.

CREATE DATABASE doesn't copy dathasloginevt from the template database.
ALTER EVENT TRIGGER ... ENABLE doesn't set dathasloginevt.

In both cases triggers are enabled according to \dy output, but don't 
fire. The admin may not notice it immediately.

-- 
Sergey Shinderuk        https://postgrespro.com/



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

Предыдущее
От: Melih Mutlu
Дата:
Сообщение: Re: Mingw task for Cirrus CI
Следующее
От: Ashutosh Bapat
Дата:
Сообщение: Re: confirmed_flush_lsn shows LSN of the data that has not yet been received by the logical subscriber.