Re: ERROR: tuple concurrently updated when modifying privileges - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: ERROR: tuple concurrently updated when modifying privileges
Date
Msg-id 20190514071153.GA1376@paquier.xyz
Whole thread Raw
In response to Re: ERROR: tuple concurrently updated when modifying privileges  (Chris Travers <chris.travers@adjust.com>)
Responses Re: ERROR: tuple concurrently updated when modifying privileges  (Chris Travers <chris.travers@adjust.com>)
List 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

Attachment

pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: Tab completion for CREATE TYPE
Next
From: navneet nikku
Date:
Subject: can we create index/constraints in different schema