Re: ERROR: tuple concurrently updated when modifying privileges

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: ERROR: tuple concurrently updated when modifying privileges
Дата
Msg-id 20190514071153.GA1376@paquier.xyz
обсуждение исходный текст
Ответ на Re: ERROR: tuple concurrently updated when modifying privileges  (Chris Travers <chris.travers@adjust.com>)
Ответы Re: ERROR: tuple concurrently updated when modifying privileges  (Chris Travers <chris.travers@adjust.com>)
Список pgsql-hackers
On Tue, May 14, 2019 at 08:08:05AM +0200, Chris Travers wrote:
> Having thought about this a bit, I think the best solution would be to have
> grant take out an access share lock to the tables granted.  This would
> prevent concurrent alter table operations from altering the schema
> underneath the grant as well, and thus possibly cause other race conditions.
>
> Any thoughts?

"tuple concurrently updated" is an error message which should never be
user-facing, and unfortunately there are many scenarios where it can
be triggered by playing with concurrent DDLs:
https://postgr.es/m/20171228063004.GB6181@paquier.xyz

If you have an idea of patch, could you write it?  Having an isolation
test case would be nice as well.
--
Michael

Вложения

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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: Tab completion for CREATE TYPE
Следующее
От: navneet nikku
Дата:
Сообщение: can we create index/constraints in different schema