Re: [BUGS] Concurrent ALTER SEQUENCE RESTART Regression - Mailing list pgsql-bugs

From Robert Haas
Subject Re: [BUGS] Concurrent ALTER SEQUENCE RESTART Regression
Date
Msg-id CA+TgmoYyf9tZvVNhD1GDNo-rOCbg27pT-sVJQsgXRCiZBr=HUQ@mail.gmail.com
Whole thread Raw
In response to Re: [BUGS] Concurrent ALTER SEQUENCE RESTART Regression  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: [BUGS] Concurrent ALTER SEQUENCE RESTART Regression  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-bugs
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.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

pgsql-bugs by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: [BUGS] BUG #14662: 'has_table_privilege()' function fails witherror, "invalid name syntax" when using Japanese symbols
Next
From: Justin Muise
Date:
Subject: Re: [BUGS] BUG #14662: 'has_table_privilege()' function fails witherror, "invalid name syntax" when using Japanese symbols