git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a749a23) | patch
Fix and enhance the assertion of no palloc's in a critical section.
2014年6月30日 07:13:48 +0000 (10:13 +0300)
2014年6月30日 07:26:00 +0000 (10:26 +0300)
commit 1c6821be31f91ab92547a8ed4246762c8cefb1b3
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.
src/backend/access/transam/xlog.c diff | blob | blame | history
src/backend/postmaster/checkpointer.c diff | blob | blame | history
src/backend/storage/lmgr/lwlock.c diff | blob | blame | history
src/backend/storage/lmgr/proc.c diff | blob | blame | history
src/backend/storage/smgr/md.c diff | blob | blame | history
src/backend/utils/mmgr/mcxt.c diff | blob | blame | history
src/include/nodes/memnodes.h diff | blob | blame | history
src/include/storage/lwlock.h diff | blob | blame | history
src/include/utils/memutils.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /