Re: Idea: closing the loop for "pg_ctl reload"

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Idea: closing the loop for "pg_ctl reload"
Дата
Msg-id 1734.1425307849@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Idea: closing the loop for "pg_ctl reload"  (Jan de Visser <jan@de-visser.net>)
Ответы Re: Idea: closing the loop for "pg_ctl reload"  (Jan de Visser <jan@de-visser.net>)
Список pgsql-hackers
Jan de Visser <jan@de-visser.net> writes:
> 4/ Question: Can I assume pg_malloc allocated memory is set to zero? If not, 
> is it OK to do a memset(..., 0, ...)? I don't have much experience on any of 
> the esoteric platforms pgsql supports...

No, you need the memset.  You might accidentally get already-zeroed memory
from malloc, but it's not something you can rely on.

However, you could and should use pg_malloc0, which takes care of that
for you...
        regards, tom lane



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

Предыдущее
От: Thom Brown
Дата:
Сообщение: Re: Join push-down support for foreign tables
Следующее
От: Kevin Grittner
Дата:
Сообщение: Re: Idea: GSoC - Query Rewrite with Materialized Views