Re: Concurrent ALTER SEQUENCE RESTART Regression

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
Cc: Andres Freund <andres(at)anarazel(dot)de>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Jason Petersen <jason(at)citusdata(dot)com>, PostgreSQL mailing lists <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Concurrent ALTER SEQUENCE RESTART Regression
Date: 2017-06-14 17:58:57
Message-ID: CA+TgmoYyf9tZvVNhD1GDNo-rOCbg27pT-sVJQsgXRCiZBr=HUQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On Tue, Jun 13, 2017 at 3:04 PM, Peter Eisentraut
<peter(dot)eisentraut(at)2ndquadrant(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Justin Muise 2017-06-14 19:01:19 Re: BUG #14662: 'has_table_privilege()' function fails with error, "invalid name syntax" when using Japanese symbols
Previous Message David G. Johnston 2017-06-14 16:43:29 Re: BUG #14662: 'has_table_privilege()' function fails with error, "invalid name syntax" when using Japanese symbols

Browse pgsql-hackers by date

  From Date Subject
Next Message Piotr Stefaniak 2017-06-14 17:59:21 Re: pgindent (was Re: [COMMITTERS] pgsql: Preventive maintenance in advance of pgindent run.)
Previous Message Andres Freund 2017-06-14 17:56:05 Re: Disallowing multiple queries per PQexec()