Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3Xtu-0008GO-Ck for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Apr 2017 01:07:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d3Xtt-000755-PA for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Apr 2017 01:07:17 +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_2) (envelope-from ) id 1d3Xtt-00074c-2k for pgsql-bugs@postgresql.org; Thu, 27 Apr 2017 01:07:17 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d3Xtp-00080x-6u for pgsql-bugs@postgresql.org; Thu, 27 Apr 2017 01:07:16 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id A232B20784; Wed, 26 Apr 2017 21:07:11 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Wed, 26 Apr 2017 21:07:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=SPdUztGVe8yVdkzyOZc6XjZYhFuW9KKXzpNeCfPuOgc=; b=mc7Iqufa AMvw1lUZThznu8DdnFgrdWs7/iw7Q7cP+eo1cFmzUosGLXHXRG8sXIsjagax1X0R HXj/aevDtSuWxmYF/7GnDGCp3ixXSbTxS8XWnRC4u6AecwPn5GrfgtGK28y4KfoD iiSMMsXQqmXdihtC/Db7z5kt4oG1ZS3IdR7geeM8b9Xb982WxE5Y5Akl1+VOV2dh yy5l+haQnZSWniCeQsjh093NP7MRUqnGui9usiW2mcgBRiFOgc3QWl28OnehEbca xDE6Y5KBWX6w1mXnvvkAfVemrttYNqhgdCjq8NE+ti7c1T+QAtn5m+6Oc0uAS5x1 3B9uEMntqEP0GQ== X-ME-Sender: X-Sasl-enc: RGdR74Bjn9DKEH8qpSlFrmCtNAxB7F4tMP9DU5TGIa5F 1493255231 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 442E7247DC; Wed, 26 Apr 2017 21:07:11 -0400 (EDT) Subject: Re: Concurrent ALTER SEQUENCE RESTART Regression To: Michael Paquier , Andres Freund References: <16ed823b-44e4-dc51-3da9-a3d66b71ed5c@2ndquadrant.com> <9240bf94-44a8-671a-27bd-500eb868226a@2ndquadrant.com> <20170426174813.slaq6mka7v6xohap@alap3.anarazel.de> Cc: Jason Petersen , PostgreSQL mailing lists From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <99a009ea-1797-5b82-f3d3-eb4a5a8eb5dc@2ndquadrant.com> Date: Wed, 26 Apr 2017 21:07:20 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.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 On 4/26/17 19:12, Michael Paquier wrote: > Well, there are more DDL commands where it is possible to see "tuple > concurrently updated" easily, an example is ALTER ROLE. So nothing is > concurrent-proof with this code and I think needs a careful lookup > because this error should never be something that is user-visible. Yeah, it's been like this since time immemorial, so I don't think we need a last minute fix now. One thing we could do, since all catalog updates now go through CatalogTupleUpdate(), is not use simple_heap_update() there but do the heap_update() directly and provide a better user-facing error message. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs