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

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Add an Assertion that you don't palloc within a critical section
Дата
Msg-id E1WW2LR-0007Kr-7O@gemulon.postgresql.org
обсуждение исходный текст
Список 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(+)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Avoid allocations in critical sections.
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: In checkpoint, move the check for in-progress xacts out of criti