| От | Petr Jelinek |
|---|---|
| Тема | Re: bgworker crashed or not? |
| Дата | |
| Msg-id | 535EB7CB.3020807@2ndquadrant.com обсуждение исходный текст |
| Ответ на | Re: bgworker crashed or not? (Robert Haas <robertmhaas@gmail.com>) |
| Ответы |
Re: bgworker crashed or not?
|
| Список | pgsql-hackers |
On 28/04/14 16:27, Robert Haas wrote: > On Thu, Apr 24, 2014 at 1:39 AM, Craig Ringer <craig@2ndquadrant.com> wrote: >> On 04/17/2014 08:35 AM, Craig Ringer wrote: >> I've just noticed that the bgworker control interfaces do not honour >> bgw.bgw_restart_time = BGW_NEVER_RESTART if you exit with status zero. >> >> This means that it's not simply a problem where you can't say "restart >> me if I crash, but not if I exit normally". >> >> You also can't even say "never restart me at all". Because >> "BGW_NEVER_RESTART" seems to really mean "BGW_NO_RESTART_ON_CRASH". >> >> This _needs_fixing before 9.4. > > It seems we have consensus on what to do about this, but what we > haven't got is a patch. > If you mean the consensus that exit status 0 should mean permanent stop then I think the patch can be as simple as attached. -- Petr Jelinek http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера