pgsql: Add palloc_extended for frontend and backend.

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема pgsql: Add palloc_extended for frontend and backend.
Дата
Msg-id E1Ydx5r-0001qL-Kg@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Add palloc_extended for frontend and backend.

This commit also adds pg_malloc_extended for frontend. These interfaces
can be used to control at a lower level memory allocation using an interface
similar to MemoryContextAllocExtended. For example, the callers can specify
MCXT_ALLOC_NO_OOM if they want to suppress the "out of memory" error while
allocating the memory and handle a NULL return value.

Michael Paquier, reviewed by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8c8a886268dfa616193dadc98e44e0715f884614

Modified Files
--------------
src/backend/utils/mmgr/mcxt.c    |   37 ++++++++++++++++++++++++++++++++
src/common/fe_memutils.c         |   43 ++++++++++++++++++++++++++++----------
src/include/common/fe_memutils.h |   16 +++++++++++++-
src/include/utils/palloc.h       |    1 +
4 files changed, 85 insertions(+), 12 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix rare startup failure induced by MVCC-catalog-scans patch.
Следующее
От: Fujii Masao
Дата:
Сообщение: pgsql: Rework handling of OOM when allocating record buffer in XLOG rea