Re: rare avl shutdown slowness (related to signal handling)
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: rare avl shutdown slowness (related to signal handling) |
| Дата | |
| Msg-id | 13820.1428444793@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: rare avl shutdown slowness (related to signal handling) (Alvaro Herrera <alvherre@2ndquadrant.com>) |
| Ответы |
Re: rare avl shutdown slowness (related to signal handling)
|
| Список | pgsql-hackers |
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Tom Lane wrote:
>> I think changing the outer "for(;;)" to "while (!got_SIGTERM)" would
>> be a much safer fix.
> Ah, yeah. I was thinking in changing PG_exception_stack once shutdown
> was requested, but this is much simpler.
Your proposed patch seems to be doing both of those, which is probably
unnecessary. I don't object to the SIGHUP test and goto in the error
path, but I'd put it a lot further down, like after the existing
RESUME_INTERRUPTS. I doubt it's a good idea to skip the transaction
cleanup steps.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера