From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@2ndquadrant.com>
Cc: maxim.boguk@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7920: Sequence rename leave stale value for sequence_name
Date: Wed, 06 Mar 2013 10:48:08 -0500
Message-ID: <16139.1362584888@sss.pgh.pa.us> (raw)
In-Reply-To: <20130306145136.GB4970@alap2.anarazel.de>
References: <E1UDARB-0007MF-SE@wrigleys.postgresql.org>
<20130306092101.GK13803@alap2.anarazel.de>
<14588.1362580075@sss.pgh.pa.us>
<20130306145136.GB4970@alap2.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Andres Freund <andres@2ndquadrant.com> writes:
> On 2013-03-06 09:27:55 -0500, Tom Lane wrote:
>> Removing the sequence_name column alone would also break existing code,
>> for ... um ... not much.
> The only argument I see is reduced chance of people making errors. Code
> that actually uses sequence_name is broken.
Well, only if you rename the sequence, which is something many people
would never do.
> If we had something like columns that are computed on output, we could
> use that. What we could do is invent a new pseudo-column type like
> tableoid that renders as text..
> In the end it doesn't seem worth bothering.
Yeah. If I recall the older discussions correctly, we talked about
somehow splitting a sequence's storage between transactionally-updatable
and non-transactionally-updatable parts, so that we could make altering
a sequence's parameters transactional. Preserving anything remotely
like "select * from sequence" would require a view or some such.
Whenever somebody gets around to attacking that whole problem, I'll be
for that; but in the meantime it seems like we should leave it alone
instead of making marginal changes.
regards, tom lane
--
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: tgl@sss.pgh.pa.us, andres@2ndquadrant.com, maxim.boguk@gmail.com
Subject: Re: BUG #7920: Sequence rename leave stale value for sequence_name
In-Reply-To: <16139.1362584888@sss.pgh.pa.us>
References: <E1UDARB-0007MF-SE@wrigleys.postgresql.org> <20130306092101.GK13803@alap2.anarazel.de> <14588.1362580075@sss.pgh.pa.us> <20130306145136.GB4970@alap2.anarazel.de> <16139.1362584888@sss.pgh.pa.us>
* 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