Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z7mxZ-0000qG-9A for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Jun 2015 15:51:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Z7mxY-0004xw-Kb for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Jun 2015 15:51:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z7mxX-0004xm-TG for pgsql-bugs@postgresql.org; Wed, 24 Jun 2015 15:51:31 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Z7mxV-0001yZ-7s for pgsql-bugs@postgresql.org; Wed, 24 Jun 2015 15:51:31 +0000 Received: from intern.anarazel.de (ns1.anarazel.de [217.115.131.41]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id A06A3860003; Wed, 24 Jun 2015 17:51:28 +0200 (CEST) Date: Wed, 24 Jun 2015 17:51:28 +0200 From: Andres Freund To: Merlin Moncure Cc: pgsql-bugs Subject: Re: getting "ERROR: tuple concurrently updated" during concurrent grant/revoke operations (9.2.13) Message-ID: <20150624155128.GW4797@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -5.6 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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