diff options
author | Robert Haas <rhaas@postgresql.org> | 2015-01-30 12:56:48 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2015-01-30 12:56:48 -0500 |
commit | bd4e2fd97d3db84bd970d6051f775b7ff2af0e9d (patch) | |
tree | 661eb101e173451f8fe5a2ff7dd3dfac9165c01b /src/backend/utils/adt/json.c | |
parent | 3d660d33aab2f1eb98367a84eb2addf3e0969c05 (diff) | |
download | postgresql-bd4e2fd97d3db84bd970d6051f775b7ff2af0e9d.tar.gz postgresql-bd4e2fd97d3db84bd970d6051f775b7ff2af0e9d.zip |
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.
Diffstat (limited to 'src/backend/utils/adt/json.c')
0 files changed, 0 insertions, 0 deletions