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 8F4C99C66D04D4118F580090272A7A234D327E@sectorbase1.sectorbase.com
обсуждение исходный текст
Список pgsql-hackers
> > Note that elog(ERROR/FATAL) is changed to elog(STOP) if Critical
> > SectionCount > 0.
> 
> Not in current sources ;-).
> 
> Perhaps Vadim will say that I broke his error scheme, but if so it's
> his own fault for not documenting such delicate code at all.  

Ok, it's my fault (though I placed NO ELOG(ERROR) comments everywhere
around critical xlog-related sections of code).

> I believe he's out of town this weekend, so let's wait till he gets
> back and then discuss it some more. Perhaps there is a need to
> distinguish xlog-related critical sections from other ones, or
> perhaps not.

Perhaps. For xlog-related code rule is simple - backend must not be
interrupted till changes are logged.

Vadim


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: ODBC Driver int8 Patch
Следующее
От: bruc@stone.congenomics.com (Robert E. Bruccoleri)
Дата:
Сообщение: Performance degradation in PostgreSQL 7.1beta3 vs 6.5.3