Provide a way to supress the "out of memory" error when allocating.

Robert Haas <rhaas@postgresql.org>

Commit: bd4e2fd97d3db84bd970d6051f775b7ff2af0e9d
Author: Robert Haas <rhaas@postgresql.org>
Date: 2015-01-30T17:56:48Z
Releases: 9.5.0
Provide a way to supress the "out of memory" error when allocating.

Using the new interface MemoryContextAllocExtended, callers can
specify MCXT_ALLOC_NO_OOM if they are prepared to handle a NULL
return value.

Michael Paquier, reviewed and somewhat revised by me.

Files

PathChange+/−
src/backend/utils/mmgr/mcxt.c modified +40 −0
src/include/utils/palloc.h modified +9 −0