pgsql: Add an Assertion that you don't palloc within a critical section

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add an Assertion that you don't palloc within a critical section
Date: 2014-04-04 11:31:37
Message-ID: E1WW2LR-0007Kr-7O@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add an Assertion that you don't palloc within a critical section.

This caught a bunch of cases doing that already, which I just fixed in
previous commit. This is the assertion itself.

Per Tom Lane's idea.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4a170ee9e0ebd7021cb1190fabd5b0cbe2effb8e

Modified Files
--------------
src/backend/utils/mmgr/mcxt.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2014-04-04 14:32:08 pgsql: In checkpoint, move the check for in-progress xacts out of criti
Previous Message Heikki Linnakangas 2014-04-04 10:41:32 pgsql: Avoid allocations in critical sections.