Re: more on out-of-memory

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: more on out-of-memory
Дата
Msg-id 49DB007D.7000108@enterprisedb.com
обсуждение исходный текст
Ответ на more on out-of-memory  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
Alvaro Herrera wrote:
> His question was: is it possible that we're handing a NULL pointer to a
> %s on fprintf?  The involved code looks like this:
> 
>         fprintf(stderr,
>             "%s: %lu total in %ld blocks; %lu free (%ld chunks); %lu used\n",
>             set->header.name, totalspace, nblocks, freespace, nchunks,
>             totalspace - freespace);

Note that glibc prints "(null)" if you pass NULL for %s. Others don't.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: Closing some 8.4 open items
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: More message encoding woes