Re: PoC: custom signal handler for extensions

Поиск
Список
Период
Сортировка
От Anastasia Lubennikova
Тема Re: PoC: custom signal handler for extensions
Дата
Msg-id 9cebd06c-b0b3-50f5-3371-df7680b5c3e7@postgrespro.ru
обсуждение исходный текст
Ответ на Re: PoC: custom signal handler for extensions  (Pavel Borisov <pashkin.elfe@gmail.com>)
Ответы Re: PoC: custom signal handler for extensions
Список pgsql-hackers
On 03.09.2020 14:25, Pavel Borisov wrote:
Is there a chance to see you restarting working on this patch ?

I noticed that despite interest to the matter, the discussion in this CF thread stopped quite a while ago. So I'd like to push here a patch revised according to the previous discussion. Actually the patch is being used as a part of the pg_query_state extension during several major PostgreSQL releases. So I'd like to raise the matter of reviewing this updated patch and include it into version 14 as I see much use of this change.

I welcome all your considerations,

I took a look at the patch. It looks fine and I see, that it contains fixes for the latest questions in the thread.

I think we should provide a test module for this feature, that will serve as both test and example of the use.

This is a feature for extension developers, so I don't know where we should document it. At the very least we can improve comments. For example, describe the fact that custom signals are handled after receiving SIGUSR1.

-- 
Anastasia Lubennikova
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Prevent printing "next step instructions" in initdb and pg_upgrade
Следующее
От: "Drouvot, Bertrand"
Дата:
Сообщение: Re: Add Information during standby recovery conflicts