Re: [COMMITTERS] pgsql: Add new function dsa_allocate0.

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: [COMMITTERS] pgsql: Add new function dsa_allocate0.
Дата
Msg-id CAEepm=1maeY16J2KTwjHvqgs5-5eT3OWYUbE9YqaaE8w5EEtFg@mail.gmail.com
обсуждение исходный текст
Ответ на [COMMITTERS] pgsql: Add new function dsa_allocate0.  (Robert Haas <rhaas@postgresql.org>)
Ответы Re: [COMMITTERS] pgsql: Add new function dsa_allocate0.  (Thomas Munro <thomas.munro@enterprisedb.com>)
Список pgsql-committers
On Fri, Feb 17, 2017 at 7:02 AM, Robert Haas <rhaas@postgresql.org> wrote:
> Add new function dsa_allocate0.
>
> This does the same thing as dsa_allocate, except that the memory
> is guaranteed to be zero-filled on return.
>
> Dilip Kumar, adjusted by me.
>
> Branch
> ------
> master
>
> Details
> -------
> http://git.postgresql.org/pg/commitdiff/9acb85597f1223ac26a5b19a9345849c43d0ff54
>
> Modified Files
> --------------
> src/backend/utils/mmgr/dsa.c | 16 ++++++++++++++++
> src/include/utils/dsa.h      |  1 +
> 2 files changed, 17 insertions(+)

Hmm.  This will segfault if you're out of memory.

--
Thomas Munro
http://www.enterprisedb.com


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: [COMMITTERS] pgsql: Add new function dsa_allocate0.
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Add new function dsa_allocate0.