Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d5ZNm-00075r-Q9 for pgsql-bugs@arkaria.postgresql.org; Tue, 02 May 2017 15:06:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d5ZNm-0004oo-A3 for pgsql-bugs@arkaria.postgresql.org; Tue, 02 May 2017 15:06:30 +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 1d5ZN5-0003c0-Bn for pgsql-bugs@postgresql.org; Tue, 02 May 2017 15:05:47 +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 1d5ZMy-0006H8-D5 for pgsql-bugs@postgresql.org; Tue, 02 May 2017 15:05:45 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id C5A07208BE; Tue, 2 May 2017 11:05:39 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Tue, 02 May 2017 11:05:39 -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=bh371GYs0kM2qGtxm/m0/xjcvxuiIrCCSdc2N04uxlo=; b=PUW1NeCr j/VGuQ3RsH3zNW/uDV5jsfkc+iUHC/1CAXNDqMU3kgdWBaYhQ5qhC0K2CFZ+XV74 yQ7AroipJ84PTdV/mgdauBv0aXH3cFbjy4vPmtwetDtOVHR/TbAPVWRbMqXiFIqf CHvzFQDE1Dfvzq1uxzVRDtoVRgeKwkdhEhta4XgqEwwYJvYdcw+rV9PxeUCsRv5/ XgoF6NMsQTmXLQFNXpWkojVRWPK75psNKMJ4tKVv/Hytil0nGA7asBXDB5bKoTBz AadDmUn0LPpJW8gPqFE8jhcNggy9YAtZFrZL7rmL6rsdz6wrBRQRwQGLo0oV/ewi CS7hw3hdxTRBVA== X-ME-Sender: X-Sasl-enc: 7uOavWiyORVvCS9j7AWtzVii68MgHfuBCEy01rQMjPxS 1493737539 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 80E90247AA; Tue, 2 May 2017 11:05:39 -0400 (EDT) Subject: Re: Concurrent ALTER SEQUENCE RESTART Regression To: Andres Freund 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> <20170427011258.2tpv55b6leqe2uva@alap3.anarazel.de> <1e5bb916-fd58-3995-851b-6875c6dd73eb@2ndquadrant.com> <20170427055211.jc5tblpguawbeqjq@alap3.anarazel.de> Cc: Michael Paquier , Jason Petersen , PostgreSQL mailing lists From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <87b349c1-3384-437e-01d3-173a69baf46f@2ndquadrant.com> Date: Tue, 2 May 2017 11:05:38 -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: <20170427055211.jc5tblpguawbeqjq@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 4/27/17 01:52, Andres Freund wrote: > In contrast to with the page lock held. But now we do log XLOG_SEQ_LOG, then unlock > the buffer, and then do a CatalogTupleUpdate(). How is that correct? The change to the sequence data and the change to the catalog are two separate operations. There is no need AFAICT for the latter to be done while the former is locked or vice versa. -- 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