Using XLogFileNameP in critical section

Поиск
Список
Период
Сортировка
От Masahiko Sawada
Тема Using XLogFileNameP in critical section
Дата
Msg-id CA+fd4k5gC9H4uoWMLg9K_QfNrnkkdEw+-AFveob9YX7z8JnKTA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Using XLogFileNameP in critical section  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
Hi,

I encountered that the assertion error is reported instead of a proper
PANIC message when failed to fsync WAL. The cause is that there are
multiple places where we call XLogFileNameP function that calls palloc
during critical section, for example XLogWrite function.

TRAP: FailedAssertion("CritSectionCount == 0 ||
(context)->allowInCritSection", File: "mcxt.c", Line: 956)

As far as I can see there are five places we need to fix.I've attached a patch.

Regards,

--
Masahiko Sawada            http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Вложения

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

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: pgbench -i progress output on terminal
Следующее
От: David Fetter
Дата:
Сообщение: Make autovacuum sort tables in descending order of xid_age