RE: SIGTERM -> elog(FATAL) -> proc_exit() is probably a bad idea

Поиск
Список
Период
Сортировка
От Mikheev, Vadim
Тема RE: SIGTERM -> elog(FATAL) -> proc_exit() is probably a bad idea
Дата
Msg-id 8F4C99C66D04D4118F580090272A7A234D327F@sectorbase1.sectorbase.com
обсуждение исходный текст
Ответы Re: SIGTERM -> elog(FATAL) -> proc_exit() is probably a bad idea  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> Because I think turning an elog(ERROR) into a system-wide crash is
> not a good idea ;-).  If you are correct that this behavior 
> is necessary for WAL-related critical sections, then indeed we need
> two kinds of critical sections, one that just holds off cancel/die
> response and one that turns elog(ERROR) into a dangerous weapon.
> I'm going to wait and see Vadim's response before I do anything ...

I've tried to move "dangerous" ops with non-zero probability of
elog(ERROR) (eg new file block allocation) out of crit sections.
Anyway we need in ERROR-->STOP for safety when changes aren't logged.

Vadim


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Rehak Tamas
Дата:
Сообщение: Re: copy from stdin; bug?
Следующее
От: bruc@stone.congenomics.com (Robert E. Bruccoleri)
Дата:
Сообщение: Re: Re: Performance degradation in PostgreSQL 7.1beta3 vs