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-0006YG-52@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_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(-)

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