postgresql/src/backend/storage
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
..
buffer Don't allow to disable backend assertions via the debug_assertions GUC. 2014-06-20 11:09:17 +02:00
file pgindent run for 9.4 2014-05-06 12:12:18 -04:00
freespace pgindent run for 9.4 2014-05-06 12:12:18 -04:00
ipc Fix misc typos in comments. 2014-05-23 08:16:21 -04:00
large_object Add defenses against running with a wrong selection of LOBLKSIZE. 2014-06-05 11:31:06 -04:00
lmgr Fix and enhance the assertion of no palloc's in a critical section. 2014-06-30 10:26:00 +03:00
page pgindent run for 9.4 2014-05-06 12:12:18 -04:00
smgr Fix and enhance the assertion of no palloc's in a critical section. 2014-06-30 10:26:00 +03:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00