Re: pgsql-server: Add missing null terminator to escaped

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql-server: Add missing null terminator to escaped
Дата
Msg-id 8610.1097176038@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql-server: Add missing null terminator to escaped  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-committers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Thanks.  Wonder why my testing worked?  I guess xmalloc was giving me
> zeroed memory.

One-shot programs like initdb are very likely to see all-zeroed memory,
since that's what the kernel gives you.  It's only after you start
freeing things that you'll get nonzero areas from malloc ...

            regards, tom lane

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