Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9BQu-0008AO-5i for pgsql-bugs@arkaria.postgresql.org; Fri, 12 May 2017 14:20:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d9BQt-0003bz-Jc for pgsql-bugs@arkaria.postgresql.org; Fri, 12 May 2017 14:20:39 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d9BQA-0000rs-Lr; Fri, 12 May 2017 14:19:54 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d9BQ7-0004kH-Lo; Fri, 12 May 2017 14:19:53 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 7D98620C49; Fri, 12 May 2017 10:19:50 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Fri, 12 May 2017 10:19:50 -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=ca8jmxnhIDY4r0RcKzNg8ScjYkRMuxa/5P2CQJvjdg8=; b=ROKZpn8N SLMz4EkJC2dPN1JTh97nfxeqdCCMVIVKCnn2gyGJZy5L1ShsbGNBLN2Xn1FmqaLV 5U0NtqcdB0h5VovNn5YR2OaK85YNtQXjFuw2dmA6khCzOzFidXZ/aimB7siFONwS oAcyLd7Ae5LbwzC3MlRedKhpmnma0fbwmaGaxQqaeEut9HlXchXRsJep9SkZRH50 P7USAhPrQdScPIIxDz8f0JHMyiqSL16l8NVlzGeLU2kn4h+IToQMXigKUsHMkhjX jers5s95d+2QCZVTJXlNxglCK08hFjp0x4maJ/6dFXLbh30VM5Tyw8vz4AwablvU zArW4f3O/o90lw== X-ME-Sender: X-Sasl-enc: ape6KoT8JGq/6HXtxs+pwfvMLliWWJJt0I0vlPXDQ2Ja 1494598790 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 12D5A24951; Fri, 12 May 2017 10:19:50 -0400 (EDT) Subject: Re: [HACKERS] Concurrent ALTER SEQUENCE RESTART Regression To: Andres Freund References: <20170430080517.GA811193@rfd.leadboat.com> <59aeb834-b113-6769-bfe4-65f2f8c875e3@2ndquadrant.com> <20170507234334.yimkp6aq2o43wtt2@alap3.anarazel.de> <4521f870-bb1f-1b29-3b3f-42419696efe7@2ndquadrant.com> <20d59e42-4a08-fa34-29df-9f54b3ef5ba7@2ndquadrant.com> <2913.1494426542@sss.pgh.pa.us> <20170510162450.bzfktkeexezepf6c@alap3.anarazel.de> <4c69c740-67e2-34be-3310-c74d4924843b@2ndquadrant.com> <20170511203433.rvkx2pm4kzthn62b@alap3.anarazel.de> Cc: Tom Lane , Petr Jelinek , pgsql-hackers@postgresql.org, Noah Misch , Jason Petersen , Michael Paquier , PostgreSQL mailing lists From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <50d1aa51-1d3c-1c4d-0548-69d18e2f0972@2ndquadrant.com> Date: Fri, 12 May 2017 10:20:02 -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: <20170511203433.rvkx2pm4kzthn62b@alap3.anarazel.de> Content-Type: text/plain; charset=windows-1252 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 5/11/17 16:34, Andres Freund wrote: >>> This'd probably need to be removed, as we'd otherwise would get very >>> weird semantics around aborted subxacts. >> Can you explain in more detail what you mean by this? > Well, right now we don't do proper lock-tracking for sequences, always > assigning them to the toplevel transaction. But that doesn't seem > proper when nextval() would conflict with ALTER SEQUENCE et al, because > then locks would continue to be held by aborted savepoints. I see what you mean here. We already have this issue with DROP SEQUENCE. While it would be nice to normalize this, I think it's quite esoteric. I doubt users have any specific expectations how sequences behave in aborted subtransactions. -- 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