Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8q8U-0006Pt-RS for pgsql-bugs@arkaria.postgresql.org; Thu, 11 May 2017 15:36:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d8q8U-0004CF-9B for pgsql-bugs@arkaria.postgresql.org; Thu, 11 May 2017 15:36:14 +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 1d8q7l-0001j3-SL; Thu, 11 May 2017 15:35:30 +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 1d8q7g-0002t6-IT; Thu, 11 May 2017 15:35:28 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 3983B20789; Thu, 11 May 2017 11:35:23 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Thu, 11 May 2017 11:35:23 -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=f5VvXJuj0dK70WVNdKTa6LgxyJu8Mn1EhdSN28vm+q0=; b=r34ngJvI sJruNDJr1FlIINPOxLTipVcxwXBZF2ZHlq1JPgXIWPZWpEEiccTrxX5IUUw4LuYt ZUKUL6GF8sbNkCHe1dru5z+IMeyS/BCeKAPRiVFUsiMPAFKIUdvWQe2qYMs0y0oz sQVaSyXalQN6t/7YRS4ntknVkNpVtd8jhcdzw1laVIMMqSFACHDcwcJhdGkqwIki 3A7cbxWkCu+4CWwhuywN5UB/X/S9ZIKymAS3fVRM3QCaV+AnNm+QO2UhZT8tua4G lFCy2l5C/7n2AhLvHFonWFZMqNWchB+nOcwQVW/4LizZD5Qt052WqULwiZUfFON0 CzV37tFpqsvxBw== X-ME-Sender: X-Sasl-enc: diQPhW1Dxf8fVru4HK8q0gR2xEDVg5qoZfQR4WeARf5V 1494516923 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 BD56A7E9D6; Thu, 11 May 2017 11:35:22 -0400 (EDT) Subject: Re: [HACKERS] Concurrent ALTER SEQUENCE RESTART Regression To: Andres Freund , Tom Lane References: <20170427062304.gxh3rczhh6vblrwh@alap3.anarazel.de> <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> Cc: Petr Jelinek , pgsql-hackers@postgresql.org, Noah Misch , Jason Petersen , Michael Paquier , PostgreSQL mailing lists From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <4c69c740-67e2-34be-3310-c74d4924843b@2ndquadrant.com> Date: Thu, 11 May 2017 11:35:22 -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: <20170510162450.bzfktkeexezepf6c@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/10/17 12:24, Andres Freund wrote: > The issue isn't the strength, but that we currently have this weird > hackery around open_share_lock(): > /* > * Open the sequence and acquire AccessShareLock if needed > * > * If we haven't touched the sequence already in this transaction, > * we need to acquire AccessShareLock. We arrange for the lock to > * be owned by the top transaction, so that we don't need to do it > * more than once per xact. > */ > > 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? -- 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