pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Jason Petersen <jason@citusdata.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: Concurrent ALTER SEQUENCE RESTART Regression
Date: Fri, 16 Jun 2017 12:15:55 -0400
Message-ID: <3fc03672-5437-713b-b49e-d2e93779dc96@2ndquadrant.com> (raw)
In-Reply-To: <CA+TgmoYyf9tZvVNhD1GDNo-rOCbg27pT-sVJQsgXRCiZBr=HUQ@mail.gmail.com>
References: <CAB7nPqRUXMvo5xy9cLFyhuHErN9WVCckuKaUbJpxPGBzxqVFdw@mail.gmail.com>
	<CAB7nPqRev_wK4k39hQBpQZRQ17v29guxfobnnmTYT_-hUU67BA@mail.gmail.com>
	<16ed823b-44e4-dc51-3da9-a3d66b71ed5c@2ndquadrant.com>
	<CAB7nPqSDhVn6+yrteh+K4Z58F93dQd-S40N5HL6HQsFMYccL6w@mail.gmail.com>
	<9240bf94-44a8-671a-27bd-500eb868226a@2ndquadrant.com>
	<20170426174813.slaq6mka7v6xohap@alap3.anarazel.de>
	<CAB7nPqR_K5pSnP9WUyvgn_76Qurz7BtJZgF6tL1+3cFwxwj68w@mail.gmail.com>
	<99a009ea-1797-5b82-f3d3-eb4a5a8eb5dc@2ndquadrant.com>
	<20170427011258.2tpv55b6leqe2uva@alap3.anarazel.de>
	<1e5bb916-fd58-3995-851b-6875c6dd73eb@2ndquadrant.com>
	<20170427055211.jc5tblpguawbeqjq@alap3.anarazel.de>
	<CA+TgmoZne41kmc7bT3LH8r4M2hmxzqK33nPXGhXQmfh9ar4ZZQ@mail.gmail.com>
	<bbb46016-21f4-6cc3-ae2a-eefed97da2d2@2ndquadrant.com>
	<CA+TgmoYyf9tZvVNhD1GDNo-rOCbg27pT-sVJQsgXRCiZBr=HUQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 6/14/17 13:58, Robert Haas wrote:
> On Tue, Jun 13, 2017 at 3:04 PM, Peter Eisentraut
> <peter.eisentraut@2ndquadrant.com> 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



view thread (84+ messages)

Message-ID: <3fc03672-5437-713b-b49e-d2e93779dc96@2ndquadrant.com>
Permalink:  ../3fc03672-5437-713b-b49e-d2e93779dc96@2ndquadrant.com/
Also on:    postgresql.org/message-id/3fc03672-5437-713b-b49e-d2e93779dc96@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, robertmhaas@gmail.com, andres@anarazel.de, michael.paquier@gmail.com, jason@citusdata.com
  Subject: Re: Concurrent ALTER SEQUENCE RESTART Regression
  In-Reply-To: <3fc03672-5437-713b-b49e-d2e93779dc96@2ndquadrant.com>
  References: <CAB7nPqRUXMvo5xy9cLFyhuHErN9WVCckuKaUbJpxPGBzxqVFdw@mail.gmail.com> <CAB7nPqRev_wK4k39hQBpQZRQ17v29guxfobnnmTYT_-hUU67BA@mail.gmail.com> <16ed823b-44e4-dc51-3da9-a3d66b71ed5c@2ndquadrant.com> <CAB7nPqSDhVn6+yrteh+K4Z58F93dQd-S40N5HL6HQsFMYccL6w@mail.gmail.com> <9240bf94-44a8-671a-27bd-500eb868226a@2ndquadrant.com> <20170426174813.slaq6mka7v6xohap@alap3.anarazel.de> <CAB7nPqR_K5pSnP9WUyvgn_76Qurz7BtJZgF6tL1+3cFwxwj68w@mail.gmail.com> <99a009ea-1797-5b82-f3d3-eb4a5a8eb5dc@2ndquadrant.com> <20170427011258.2tpv55b6leqe2uva@alap3.anarazel.de> <1e5bb916-fd58-3995-851b-6875c6dd73eb@2ndquadrant.com> <20170427055211.jc5tblpguawbeqjq@alap3.anarazel.de> <CA+TgmoZne41kmc7bT3LH8r4M2hmxzqK33nPXGhXQmfh9ar4ZZQ@mail.gmail.com> <bbb46016-21f4-6cc3-ae2a-eefed97da2d2@2ndquadrant.com> <CA+TgmoYyf9tZvVNhD1GDNo-rOCbg27pT-sVJQsgXRCiZBr=HUQ@mail.gmail.com> <3fc03672-5437-713b-b49e-d2e93779dc96@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox