Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLtuk-0004Qt-0T for pgsql-bugs@arkaria.postgresql.org; Fri, 16 Jun 2017 16:16:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dLtuj-00080e-JN for pgsql-bugs@arkaria.postgresql.org; Fri, 16 Jun 2017 16:16:01 +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 1dLtuj-00080V-3Y for pgsql-bugs@postgresql.org; Fri, 16 Jun 2017 16:16:01 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dLtuf-0006d0-SO for pgsql-bugs@postgresql.org; Fri, 16 Jun 2017 16:16:00 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 72595206EE; Fri, 16 Jun 2017 12:15:56 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Fri, 16 Jun 2017 12:15:56 -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=As3ahtit6WsKjfwl2vsAng6zMyf0TeEbJELhOB6dm6Q=; b=npu/vED8 pzvBoBg8cvTTMVHEkM1RWXpgseGdWtl74iVw3X49nP+Al81IwBPSN+hceBcnXB8b JBQiUu2QLbwWGyMZxImRQ7uFIRDFwvPx/w7i+87/TqY71Mfmm5cqJOISFHT8cckO nITM/quWuAc48uEGSDvnTAf3xsjcRHAWOGtpNSoouLHAIpnQyS0elEmPHC+dSJaL X7l4Jq/Jtfivfdp07oW+9vFSVbDwdFG6Z11uEGoRVdxXwBQvBwU438boznnI9GAR rkLwe42bNQy8zzswJkmSvlCOwINpFLegXW7qOb7e6XiqPG7lKUb+OJMmM1K/ijw4 /e53fpvfkNgwRA== X-ME-Sender: X-Sasl-enc: iWputJT6I6Y7d+ANm/5amU701Wz/2bpVPxge5PIN3VT/ 1497629756 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 2437C24922; Fri, 16 Jun 2017 12:15:56 -0400 (EDT) Subject: Re: Concurrent ALTER SEQUENCE RESTART Regression To: Robert Haas 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: Andres Freund , Michael Paquier , Jason Petersen , PostgreSQL mailing lists From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <3fc03672-5437-713b-b49e-d2e93779dc96@2ndquadrant.com> Date: Fri, 16 Jun 2017 12:15:55 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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 6/14/17 13:58, Robert Haas wrote: > On Tue, Jun 13, 2017 at 3:04 PM, Peter Eisentraut > wrote: >> On 5/2/17 12:45, Robert Haas wrote: >>> Another thing that doesn't look so good about AlterSequence is that it >>> uses RangeVarGetRelid() instead of RangeVarGetsRelidExtended() with >>> RangeVarCallbackOwnsRelation or some derivative thereof. That of >>> course means you can obstruct access to a sequence you don't own. >> >> Here is a patch for this. Note that this is old code, but it seems >> worth fixing now while we're at it. > > +1. committed -- 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