Обсуждение: AllocSetStats uses fprintf instead of elog

Поиск
Список
Период
Сортировка

AllocSetStats uses fprintf instead of elog

От
Zdenek Kotala
Дата:
Function AllocSetStats uses fprintf instead of standard logging method. 
Is there any reason for it? If not I will rewrite it to use 
elog(NOTICE,..) instead.
    Zdenek


Re: AllocSetStats uses fprintf instead of elog

От
Tom Lane
Дата:
Zdenek Kotala <Zdenek.Kotala@Sun.COM> writes:
> Function AllocSetStats uses fprintf instead of standard logging method. 
> Is there any reason for it?

Yes: it's typically called in zero-free-memory situations, and we don't
want to depend on elog() succeeding to be able to find out what happened.
        regards, tom lane