pgsql: Provide a way to supress the "out of memory" error when allocati

Поиск
Список
Период
Сортировка
От Robert Haas
Тема pgsql: Provide a way to supress the "out of memory" error when allocati
Дата
Msg-id E1YHFpy-0001Kj-4M@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix assorted oversights in range selectivity estimation.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix Coverity warning about contrib/pgcrypto's mdc_finish().