From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: zam6ak@gmail.com, "pgsql-bugs@postgresql.org" <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14813: pg_get_serial_sequence does not return seqence name for IDENTITY columns
Date: Fri, 15 Sep 2017 14:31:23 -0400
Message-ID: <be99f778-2c0b-87d6-3772-008d8ac8e9e7@2ndquadrant.com> (raw)
In-Reply-To: <5ede3d20-b641-1cc9-120c-12bf0d8e6d07@2ndquadrant.com>
References: <20170913132503.jtwdcomwnteldjvt@alvherre.pgsql>
<5ede3d20-b641-1cc9-120c-12bf0d8e6d07@2ndquadrant.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 9/14/17 17:15, Peter Eisentraut wrote:
> On 9/13/17 09:25, Alvaro Herrera wrote:
>> Tom Lane wrote:
>>> "David G. Johnston" <david.g.johnston@gmail.com> writes:
>>
>>>> I suspect this is an opportunity for documentation enhancement as opposed
>>>> to a bug.
>>>
>>> The reason appears to be that the dependency setup for a sequence created
>>> to support IDENTITY is randomly different from that for a serial sequence.
>>> I'm not sure this is a good thing.
>>
>> It would be bad to break queries all over the internet that assume that
>> sequences for columns can be found using pg_get_serial_sequence, so I
>> agree this should be fixed.
>
> Proposed patch attached.
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
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, alvherre@alvh.no-ip.org, tgl@sss.pgh.pa.us, david.g.johnston@gmail.com
Subject: Re: BUG #14813: pg_get_serial_sequence does not return seqence name for IDENTITY columns
In-Reply-To: <be99f778-2c0b-87d6-3772-008d8ac8e9e7@2ndquadrant.com>
References: <20170913132503.jtwdcomwnteldjvt@alvherre.pgsql> <5ede3d20-b641-1cc9-120c-12bf0d8e6d07@2ndquadrant.com> <be99f778-2c0b-87d6-3772-008d8ac8e9e7@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