From: 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, Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: 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: Wed, 13 Sep 2017 15:25:03 +0200
Message-ID: <20170913132503.jtwdcomwnteldjvt@alvherre.pgsql> (raw)
In-Reply-To: <31137.1505260059@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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.
--
Álvaro Herrera https://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: alvherre@alvh.no-ip.org, tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, peter.eisentraut@2ndquadrant.com
Subject: Re: BUG #14813: pg_get_serial_sequence does not return seqence name for IDENTITY columns
In-Reply-To: <20170913132503.jtwdcomwnteldjvt@alvherre.pgsql>
References: <31137.1505260059@sss.pgh.pa.us> <20170913132503.jtwdcomwnteldjvt@alvherre.pgsql>
* 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