Re: pg_receivewal and SIGTERM

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: pg_receivewal and SIGTERM
Дата
Msg-id 894AEB23-270C-4058-BB31-B5B46CAF7C12@yesql.se
обсуждение исходный текст
Ответ на Re: pg_receivewal and SIGTERM  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Ответы Re: pg_receivewal and SIGTERM  (Christoph Berg <myon@debian.org>)
Список pgsql-hackers
> On 16 Aug 2022, at 13:40, Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> wrote:
>
> On Tue, Aug 16, 2022 at 5:06 PM Christoph Berg <myon@debian.org> wrote:

>> I went with sigexit_handler since pg_recvlogical has also a
>> sighup_handler and "sig_handler" would be confusing there.
>
> Can we move these signal handlers to streamutil.h/.c so that both
> pg_receivewal and pg_recvlogical can make use of it avoiding duplicate
> code?

In general that's a good idea, but they are so trivial that I don't really see
much point in doing that in this particular case.

--
Daniel Gustafsson        https://vmware.com/




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

Предыдущее
От: Bharath Rupireddy
Дата:
Сообщение: Re: pg_receivewal and SIGTERM
Следующее
От: Christoph Berg
Дата:
Сообщение: Re: pg_receivewal and SIGTERM