pgsql: Provide a way to supress the "out of memory" error when allocati - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Provide a way to supress the "out of memory" error when allocati
Date
Msg-id E1YHFpy-0001Kj-4M@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/bd4e2fd97d3db84bd970d6051f775b7ff2af0e9d

Modified Files
--------------
src/backend/utils/mmgr/mcxt.c |   40 ++++++++++++++++++++++++++++++++++++++++
src/include/utils/palloc.h    |    9 +++++++++
2 files changed, 49 insertions(+)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix assorted oversights in range selectivity estimation.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix Coverity warning about contrib/pgcrypto's mdc_finish().