Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3Xza-0000T7-Md for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Apr 2017 01:13:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d3Xza-0002mx-65 for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Apr 2017 01:13:10 +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 1d3XzZ-0002kO-7w for pgsql-bugs@postgresql.org; Thu, 27 Apr 2017 01:13:09 +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 1d3XzR-00088S-TD for pgsql-bugs@postgresql.org; Thu, 27 Apr 2017 01:13:08 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id BB63A208D4; Wed, 26 Apr 2017 21:13:00 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Wed, 26 Apr 2017 21:13:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=QytC4vsNYLmE/mV5vL KW2/AtkVRko6yEqnz+xojtlNI=; b=g25Gj6BGc4pDkFJNMur2g3xYbuLMLPLXmY 65O8UUT2R+OJ8ruRATrW0sdc+Z8O66SPrt0VDUJKcjcc7DveNez7jpGmkxJAEOQX tQ1rKDaVPrIVJL95enQjiBeZ+53MFgubEQ/7ZXQOHccMu3Yg23J8gAK0BGFW5zsM 4ZXVKl1DW9yUv3mWg8hX46/RUR7KmKOE4JAAUhnXnuYG2VjtJkmDr9ZxjM4VyKuo WR774RYgcnFuAKsBNFJSHx68J70OTQ2vJP4D3DbMoGCxwejHqDnalGyxJSsNqz49 DbwdHP2gHaAdGBrF8jF3yIkysbuZnpAZwxKFdIE0OQCYNx1IGYDQ== X-ME-Sender: X-Sasl-enc: svGUUKRVdtOV63JwQGj1hEg7M2BAuVqAptehJm4BBXNo 1493255580 Received: from intern.anarazel.de (unknown [208.72.138.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 5B52C7E320; Wed, 26 Apr 2017 21:13:00 -0400 (EDT) Date: Wed, 26 Apr 2017 18:12:58 -0700 From: Andres Freund To: Peter Eisentraut Cc: Michael Paquier , Jason Petersen , PostgreSQL mailing lists Subject: Re: Concurrent ALTER SEQUENCE RESTART Regression Message-ID: <20170427011258.2tpv55b6leqe2uva@alap3.anarazel.de> References: <16ed823b-44e4-dc51-3da9-a3d66b71ed5c@2ndquadrant.com> <9240bf94-44a8-671a-27bd-500eb868226a@2ndquadrant.com> <20170426174813.slaq6mka7v6xohap@alap3.anarazel.de> <99a009ea-1797-5b82-f3d3-eb4a5a8eb5dc@2ndquadrant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <99a009ea-1797-5b82-f3d3-eb4a5a8eb5dc@2ndquadrant.com> 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 2017-04-26 21:07:20 -0400, Peter Eisentraut wrote: > 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. Uh. Until v10 this worked in a somewhat weird way, but it worked. > 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. I think it's unacceptable to regress with an error message here. I've seen sequence DDL being used while concurrent DML was onging in a number of production use cases, and just starting to error out instead of properly blocking doesn't seem acceptable to me. - Andres -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs