postgresql/src/backend
Heikki Linnakangas 1c6821be31 Fix and enhance the assertion of no palloc's in a critical section.
The assertion failed if WAL_DEBUG or LWLOCK_STATS was enabled; fix that by
using separate memory contexts for the allocations made within those code
blocks.

This patch introduces a mechanism for marking any memory context as allowed
in a critical section. Previously ErrorContext was exempt as a special case.

Instead of a blanket exception of the checkpointer process, only exempt the
memory context used for the pending ops hash table.
2014-06-30 10:26:00 +03:00
..
access Fix and enhance the assertion of no palloc's in a critical section. 2014-06-30 10:26:00 +03:00
bootstrap Revert "Fix bogus %name-prefix option syntax in all our Bison files." 2014-05-28 19:21:01 -04:00
catalog Remove use_json_as_text options from json_to_record/json_populate_record. 2014-06-29 13:50:58 -04:00
commands Have multixact be truncated by checkpoint, not vacuum 2014-06-27 14:43:53 -04:00
executor Avoid leaking memory while evaluating arguments for a table function. 2014-06-19 22:14:26 -04:00
foreign Update copyright for 2014 2014-01-07 16:05:30 -05:00
lib pgindent run for 9.4 2014-05-06 12:12:18 -04:00
libpq Rename lo_create(oid, bytea) to lo_from_bytea(). 2014-06-12 15:39:09 -04:00
main Remove Alpha and Tru64 support. 2014-06-28 21:46:15 +02:00
nodes Implement UPDATE tab SET (col1,col2,...) = (SELECT ...), ... 2014-06-18 13:22:34 -04:00
optimizer Allow pushdown of WHERE quals into subqueries with window functions. 2014-06-27 23:08:08 -07:00
parser Implement UPDATE tab SET (col1,col2,...) = (SELECT ...), ... 2014-06-18 13:22:34 -04:00
po Translation updates 2014-05-10 22:16:59 -04:00
port Remove Alpha and Tru64 support. 2014-06-28 21:46:15 +02:00
postmaster Fix and enhance the assertion of no palloc's in a critical section. 2014-06-30 10:26:00 +03:00
regex pgindent run for 9.4 2014-05-06 12:12:18 -04:00
replication Consistency improvements for slot and decoding code. 2014-06-12 13:33:27 +02:00
rewrite Implement UPDATE tab SET (col1,col2,...) = (SELECT ...), ... 2014-06-18 13:22:34 -04:00
snowball Fix ancient encoding error in hungarian.stop. 2014-06-10 22:48:16 -04:00
storage Fix and enhance the assertion of no palloc's in a critical section. 2014-06-30 10:26:00 +03:00
tcop Don't allow to disable backend assertions via the debug_assertions GUC. 2014-06-20 11:09:17 +02:00
tsearch pgindent run for 9.4 2014-05-06 12:12:18 -04:00
utils Fix and enhance the assertion of no palloc's in a critical section. 2014-06-30 10:26:00 +03:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
Makefile Get rid of use of dlltool in Mingw builds. 2014-02-11 12:56:20 -05:00
nls.mk Add libpgcommon to backend gettext source files 2013-10-19 13:49:05 -04:00