Avoid allocations in critical sections.
If a palloc in a critical section fails, it becomes a PANIC.
Branch
------
REL9_3_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/1891a4b6b8ad2bcdd290380a89cbb4dc160adbb8
Modified Files
--------------
src/backend/access/nbtree/nbtinsert.c | 55 ++++++++++++++++---------------
src/backend/access/spgist/spgdoinsert.c | 8 ++---
src/backend/access/transam/xlog.c | 22 +++++--------
src/backend/storage/page/bufpage.c | 21 +++++-------
4 files changed, 49 insertions(+), 57 deletions(-)