On Fri, Feb 17, 2017 at 7:02 AM, Robert Haas <[email protected]> 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 -- Sent via pgsql-committers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers
