pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
getting "ERROR: tuple concurrently updated" during concurrent grant/revoke operations (9.2.13) 3+ messages / 2 participants [nested] [flat]
* getting "ERROR: tuple concurrently updated" during concurrent grant/revoke operations (9.2.13) @ 2015-06-24 15:43 Merlin Moncure <mmoncure@gmail.com> 2015-06-24 15:51 ` Re: getting "ERROR: tuple concurrently updated" during concurrent grant/revoke operations (9.2.13) Andres Freund <andres@anarazel.de> 0 siblings, 1 reply; 3+ messages in thread From: Merlin Moncure @ 2015-06-24 15:43 UTC (permalink / raw) To: pgsql-bugs I was experiencing a problem where a script which was simultaneously loading multiple database backups to private schemas was reliably drawing the error, "ERROR: tuple concurrently updated" during grant/revoke steps of the restore. (The problem isn't at all serious because the impacted statement is irrelevant to this server.) If I create a file, breakit.sql: GRANT ALL ON SCHEMA public TO PUBLIC; REVOKE ALL ON SCHEMA public FROM PUBLIC; and bench it, it immediately draws the error: [merlin@mernix ~]# pgbench -n -c16 -T30 -f breakit.sql postgres Client 4 aborted in state 0: ERROR: tuple concurrently updated Client 2 aborted in state 0: ERROR: tuple concurrently updated Client 0 aborted in state 0: ERROR: tuple concurrently updated Client 1 aborted in state 0: ERROR: tuple concurrently updated Client 10 aborted in state 0: ERROR: tuple concurrently updated Client 5 aborted in state 0: ERROR: tuple concurrently updated Client 7 aborted in state 0: ERROR: tuple concurrently updated Client 12 aborted in state 0: ERROR: tuple concurrently updated Client 14 aborted in state 0: ERROR: tuple concurrently updated Client 3 aborted in state 0: ERROR: tuple concurrently updated Client 11 aborted in state 0: ERROR: tuple concurrently updated Client 9 aborted in state 0: ERROR: tuple concurrently updated Client 13 aborted in state 0: ERROR: tuple concurrently updated Client 15 aborted in state 0: ERROR: tuple concurrently updated Client 8 aborted in state 0: ERROR: tuple concurrently updated Also confirmed this on 9.4. merlin -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: getting "ERROR: tuple concurrently updated" during concurrent grant/revoke operations (9.2.13) 2015-06-24 15:43 getting "ERROR: tuple concurrently updated" during concurrent grant/revoke operations (9.2.13) Merlin Moncure <mmoncure@gmail.com> @ 2015-06-24 15:51 ` Andres Freund <andres@anarazel.de> 2015-06-24 17:40 ` Re: getting "ERROR: tuple concurrently updated" during concurrent grant/revoke operations (9.2.13) Merlin Moncure <mmoncure@gmail.com> 0 siblings, 1 reply; 3+ messages in thread From: Andres Freund @ 2015-06-24 15:51 UTC (permalink / raw) To: Merlin Moncure <mmoncure@gmail.com>; +Cc: pgsql-bugs Hi, On 2015-06-24 10:43:22 -0500, Merlin Moncure wrote: > I was experiencing a problem where a script which was simultaneously > loading multiple database backups to private schemas was reliably > drawing the error, "ERROR: tuple concurrently updated" during > grant/revoke steps of the restore. (The problem isn't at all serious > because the impacted statement is irrelevant to this server.) If I > create a file, > breakit.sql: > GRANT ALL ON SCHEMA public TO PUBLIC; > REVOKE ALL ON SCHEMA public FROM PUBLIC; > > and bench it, it immediately draws the error: > [merlin@mernix ~]# pgbench -n -c16 -T30 -f breakit.sql postgres > Client 4 aborted in state 0: ERROR: tuple concurrently updated > Client 2 aborted in state 0: ERROR: tuple concurrently updated To me that's not a bug. There's lots and lots of ways to get 'ERROR: tuple concurrently updated' errors when doing catalog changes concurrently. There's been a fair amount of work (particularly from Robert) reducing the amount; but it's never been claimed to be complete. I do think it'd be a good idea to fix occurrances, but I don't think that's stuff amounting to a bug, which'd then entail backpatching. In the specific case here you have an actual problem with your data loading procedures - if they concurrenty affect the same schema, including revoking permisssions - you'll possibly have more troubles than just this. Actual users of, in this case, the public schema in already existing schemas won't like this for example. And there e.g. very well might be an extension in public schema. Greetings, Andres Freund -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: getting "ERROR: tuple concurrently updated" during concurrent grant/revoke operations (9.2.13) 2015-06-24 15:43 getting "ERROR: tuple concurrently updated" during concurrent grant/revoke operations (9.2.13) Merlin Moncure <mmoncure@gmail.com> 2015-06-24 15:51 ` Re: getting "ERROR: tuple concurrently updated" during concurrent grant/revoke operations (9.2.13) Andres Freund <andres@anarazel.de> @ 2015-06-24 17:40 ` Merlin Moncure <mmoncure@gmail.com> 0 siblings, 0 replies; 3+ messages in thread From: Merlin Moncure @ 2015-06-24 17:40 UTC (permalink / raw) To: Andres Freund <andres@anarazel.de>; +Cc: pgsql-bugs On Wed, Jun 24, 2015 at 10:51 AM, Andres Freund <andres@anarazel.de> wrote: > Hi, > > On 2015-06-24 10:43:22 -0500, Merlin Moncure wrote: >> I was experiencing a problem where a script which was simultaneously >> loading multiple database backups to private schemas was reliably >> drawing the error, "ERROR: tuple concurrently updated" during >> grant/revoke steps of the restore. (The problem isn't at all serious >> because the impacted statement is irrelevant to this server.) If I >> create a file, > >> breakit.sql: >> GRANT ALL ON SCHEMA public TO PUBLIC; >> REVOKE ALL ON SCHEMA public FROM PUBLIC; >> >> and bench it, it immediately draws the error: >> [merlin@mernix ~]# pgbench -n -c16 -T30 -f breakit.sql postgres >> Client 4 aborted in state 0: ERROR: tuple concurrently updated >> Client 2 aborted in state 0: ERROR: tuple concurrently updated > > To me that's not a bug. There's lots and lots of ways to get 'ERROR: > tuple concurrently updated' errors when doing catalog changes > concurrently. There's been a fair amount of work (particularly from > Robert) reducing the amount; but it's never been claimed to be complete. > > I do think it'd be a good idea to fix occurrances, but I don't think > that's stuff amounting to a bug, which'd then entail backpatching. right, makes sense. > In the specific case here you have an actual problem with your data > loading procedures - if they concurrenty affect the same schema, > including revoking permisssions - you'll possibly have more troubles > than just this. Actual users of, in this case, the public schema in > already existing schemas won't like this for example. And there > e.g. very well might be an extension in public schema. That's pretty much correct. I use 'sed' to route public schema to a private one for various backups. It works, but the GRANT/REVOKE statements I didn't bother to route due to the fact this is an 'all superuser' database. Thus, the error is completely harmless. merlin -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2015-06-24 17:40 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-06-24 15:43 getting "ERROR: tuple concurrently updated" during concurrent grant/revoke operations (9.2.13) Merlin Moncure <mmoncure@gmail.com> 2015-06-24 15:51 ` Andres Freund <andres@anarazel.de> 2015-06-24 17:40 ` Merlin Moncure <mmoncure@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox