Provide a way to supress the "out of memory" error when allocating.
Robert Haas <rhaas@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/mmgr/mcxt.c | modified | +40 −0 |
| src/include/utils/palloc.h | modified | +9 −0 |