pgsql: Avoid allocations in critical sections.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid allocations in critical sections.
Date: 2014-04-04 10:41:32
Message-ID: E1WW1Yy-0006YP-AN@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Avoid allocations in critical sections.

If a palloc in a critical section fails, it becomes a PANIC.

Branch
------
REL9_0_STABLE

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

Modified Files
--------------
src/backend/access/nbtree/nbtinsert.c | 55 +++++++++++++++++----------------
src/backend/access/transam/xlog.c | 10 +++---
src/backend/storage/page/bufpage.c | 21 ++++++-------
3 files changed, 43 insertions(+), 43 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2014-04-04 11:31:37 pgsql: Add an Assertion that you don't palloc within a critical section
Previous Message Tom Lane 2014-04-04 02:02:55 pgsql: Fix non-equivalence of VARIADIC and non-VARIADIC function call f