Re: [COMMITTERS] pgsql: Forbid setval() during recovery.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [COMMITTERS] pgsql: Forbid setval() during recovery.
Дата
Msg-id 10444.1266683690@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: [COMMITTERS] pgsql: Forbid setval() during recovery.  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
heikki@postgresql.org (Heikki Linnakangas) writes:
> Forbid setval() during recovery. This prevents the PANIC reported  by
> Erik Rijkers. Patch by Andres Freund.

ISTM this is the wrong fix.  The real bug is that setval() doesn't
check XactReadOnly.  Now XactReadOnly is only a "soft" read only
mode, but I don't see an argument for either setval() or nextval()
to be allowed when that's set.

Any objections to changing that?
        regards, tom lane


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

Предыдущее
От: Jaime Casanova
Дата:
Сообщение: Re: explain and PARAM_EXEC
Следующее
От: Dimitri Fontaine
Дата:
Сообщение: Re: explain and PARAM_EXEC