Files
postgres/src/include
Robert Haas 16be2fd100 Make dsa_allocate interface more like MemoryContextAlloc.
A new function dsa_allocate_extended now takes flags which indicate
that huge allocations should be permitted, that out-of-memory
conditions should not throw an error, and/or that the returned memory
should be zero-filled, just like MemoryContextAllocateExtended.

Commit 9acb85597f, which added
dsa_allocate0, was broken because it failed to account for the
possibility that dsa_allocate() might return InvalidDsaPointer.
This fixes that problem along the way.

Thomas Munro, with some comment changes by me.

Discussion: http://postgr.es/m/CA+Tgmobt7CcF_uQP2UQwWmu4K9qCHehMJP9_9m1urwP8hbOeHQ@mail.gmail.com
2017-02-19 13:59:53 +05:30
..
2017-01-03 13:48:53 -05:00
2017-02-16 23:53:01 -05:00
2017-02-06 11:33:58 +02:00
2017-02-06 11:33:58 +02:00
2017-01-03 13:48:53 -05:00
2017-01-03 13:48:53 -05:00
2017-02-15 07:41:14 -05:00
2017-01-03 13:48:53 -05:00
2017-01-03 13:48:53 -05:00