Re: [COMMITTERS] pgsql: Add new function dsa_allocate0. - Mailing list pgsql-committers

From Thomas Munro
Subject Re: [COMMITTERS] pgsql: Add new function dsa_allocate0.
Date
Msg-id CAEepm=0soDK45-O6itxMH2QE+bVp6QvMuxVSnRu51AUxdDivDA@mail.gmail.com
Whole thread Raw
In response to Re: [COMMITTERS] pgsql: Add new function dsa_allocate0.  (Thomas Munro <thomas.munro@enterprisedb.com>)
Responses Re: [COMMITTERS] pgsql: Add new function dsa_allocate0.  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-committers
On Fri, Feb 17, 2017 at 11:34 AM, Thomas Munro
<thomas.munro@enterprisedb.com> wrote:
> On Fri, Feb 17, 2017 at 7:02 AM, Robert Haas <rhaas@postgresql.org> wrote:
>> http://git.postgresql.org/pg/commitdiff/9acb85597f1223ac26a5b19a9345849c43d0ff54
> Hmm.  This will segfault if you're out of memory.

Or to provide a more useful response... maybe this should be like the
attached?  Or maybe people think that dsa_allocate should throw on
failure to allocate, like palloc?

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

Attachment

pgsql-committers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: [COMMITTERS] pgsql: Add new function dsa_allocate0.
Next
From: Michael Paquier
Date:
Subject: Re: [COMMITTERS] pgsql: Add new function dsa_allocate0.