How do I signal a custom C function that the Postmaster wants to shut down ? I want to use "pg_ctl restart -mf" and not "pg_ctl restart -mi" because of data integrity concerns... Any ideas ? Thanks /Otto Blomqvist
"Otto Blomqvist" <o.blomqvist@secomintl.com> writes:
> How do I signal a custom C function that the Postmaster wants to shut down ?
Do "CHECK_FOR_INTERRUPTS();" at a suitable spot in the C function's main
loop.
regards, tom lane
Once again Tom comes threw and saves the day...! Thanks Tom ! /Otto Blomqvist "Tom Lane" <tgl@sss.pgh.pa.us> wrote in message news:18913.1120605014@sss.pgh.pa.us... > "Otto Blomqvist" <o.blomqvist@secomintl.com> writes: > > How do I signal a custom C function that the Postmaster wants to shut down ? > > Do "CHECK_FOR_INTERRUPTS();" at a suitable spot in the C function's main > loop. > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 8: explain analyze is your friend >
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера