Re: backend hangs at immediate shutdown (Re: Back-branch update releases coming in a couple weeks)
Вложения
В списке pgsql-hackers по дате отправления:
| От | MauMau |
|---|---|
| Тема | Re: backend hangs at immediate shutdown (Re: Back-branch update releases coming in a couple weeks) |
| Дата | |
| Msg-id | 448CA6B9FFFC43068AA2566F6E95ED93@maumau обсуждение |
| Ответ на | Re: backend hangs at immediate shutdown (Re: Back-branch update releases coming in a couple weeks) (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: backend hangs at immediate shutdown (Re: Back-branch
update releases coming in a couple weeks)
|
| Список | pgsql-hackers |
Hello, Tom-san, folks, From: "Tom Lane" <tgl@sss.pgh.pa.us> > I think if we want to make it bulletproof we'd have to do what the > OP suggested and switch to SIGKILL. I'm not enamored of that for the > reasons I mentioned --- but one idea that might dodge the disadvantages > is to have the postmaster wait a few seconds and then SIGKILL any > backends that hadn't exited. > > I think if we want something that's actually trustworthy, the > wait-and-then-kill logic has to be in the postmaster. I'm sorry to be late to submit a patch. I made a fix according to the above comment. Unfortunately, it was not in time for 9.1.8 release... I hope this patch will be included in 9.1.9. Could you review the patch? The summary of the change is: 1. postmaster waits for children to terminate when it gets an immediate shutdown request, instead of exiting. 2. postmaster sends SIGKILL to remaining children if all of the child processes do not terminate within 10 seconds since the start of immediate shutdown or FatalError condition. 3. On Windows, kill(SIGKILL) calls TerminateProcess(). 4. Documentation change to describe the behavior of immediate shutdown. Regards MauMau
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера