Re: locking [user] catalog tables vs 2pc vs logical rep

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: locking [user] catalog tables vs 2pc vs logical rep
Дата
Msg-id YKszkBugv7heub1G@paquier.xyz
обсуждение исходный текст
Список pgsql-hackers
On Mon, Feb 22, 2021 at 02:28:47PM -0800, Andres Freund wrote:
> Perhaps all that we need to do is to disallow 2PC prepare if [user]
> catalog tables have been locked exclusively? Similar to how we're
> disallowing preparing tables with temp table access.

At least for anything involving critical relations that get loaded at
startup?  It seems to me that if we can avoid users to get them
completely locked out even if they run the operation on an object
they own, that would be better than requiring tweaks involving
pg_resetwal or equal to rip of the 2PC transaction from existence.
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Re: Parallel scan with SubTransGetTopmostTransaction assert coredump
Следующее
От: Dilip Kumar
Дата:
Сообщение: Re: Race condition in recovery?