| От | Tom Lane |
|---|---|
| Тема | Re: PITR Signalling the Archiver |
| Дата | |
| Msg-id | 15249.1084310151@sss.pgh.pa.us обсуждение |
| Ответ на | PITR Signalling the Archiver (Simon Riggs <simon@2ndquadrant.com>) |
| Ответы |
Re: PITR Signalling the Archiver
|
| Список | pgsql-hackers |
Simon Riggs <simon@2ndquadrant.com> writes:
> I need to send a signal from a backend to the archiver process.
> 1. What signal should I use?
SIGUSR1 or SIGUSR2 would be the safest choices.
> 2. How do I give the processid of the archiver to the backend? The
> archiver may restart at any time, so its pid could change after a
> backend is forked.
My answer would be "don't". Send a signal to the postmaster and
let it signal the current archiver child. Use the existing
SendPostmasterSignal() code for the first part of this.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера