pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #10526: bad sequence rename
3+ messages / 3 participants
[nested] [flat]
* BUG #10526: bad sequence rename
@ 2014-06-04 11:16 gnuplanet@gmail.com
0 siblings, 2 replies; 3+ messages in thread
From: gnuplanet@gmail.com @ 2014-06-04 11:16 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 10526
Logged by: Alexey
Email address: gnuplanet@gmail.com
PostgreSQL version: 9.3.4
Operating system: Debian GNU/Linux
Description:
xxx=> create sequence a;
CREATE SEQUENCE
xxx=> alter sequence a rename to b;
ALTER SEQUENCE
xxx=> select sequence_name from b;
sequence_name
---------------
a
(1 row)
xxx=> select version();
version
----------------------------------------------------------------------------------------------
PostgreSQL 9.3.4 on x86_64-unknown-linux-gnu, compiled by gcc (Debian
4.8.3-2) 4.8.3, 64-bit
(1 row)
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #10526: bad sequence rename
@ 2014-06-04 13:47 Vik Fearing <vik.fearing@dalibo.com>
parent: gnuplanet@gmail.com
1 sibling, 0 replies; 3+ messages in thread
From: Vik Fearing @ 2014-06-04 13:47 UTC (permalink / raw)
To: gnuplanet@gmail.com; pgsql-bugs
On 06/04/2014 01:16 PM, gnuplanet@gmail.com wrote:
> xxx=> create sequence a;
> CREATE SEQUENCE
> xxx=> alter sequence a rename to b;
> ALTER SEQUENCE
> xxx=> select sequence_name from b;
> sequence_name
> ---------------
> a
> (1 row)
> xxx=> select version();
> version
>
> ----------------------------------------------------------------------------------------------
> PostgreSQL 9.3.4 on x86_64-unknown-linux-gnu, compiled by gcc (Debian
> 4.8.3-2) 4.8.3, 64-bit
> (1 row)
This is a duplicate of bug #7920. The decision on that was to do nothing:
http://www.postgresql.org/message-id/14588.1362580075@sss.pgh.pa.us
--
Vik
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #10526: bad sequence rename
@ 2014-06-04 14:35 Tom Lane <tgl@sss.pgh.pa.us>
parent: gnuplanet@gmail.com
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lane @ 2014-06-04 14:35 UTC (permalink / raw)
To: gnuplanet@gmail.com; +Cc: pgsql-bugs
gnuplanet@gmail.com writes:
> xxx=> create sequence a;
> CREATE SEQUENCE
> xxx=> alter sequence a rename to b;
> ALTER SEQUENCE
> xxx=> select sequence_name from b;
> sequence_name
> ---------------
> a
> (1 row)
This is not a bug; it's just how sequences work.
20-20 hindsight would suggest that the sequence name should never have
been included in the sequence data at all, but it's there and it will
always represent the original sequence name.
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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2014-06-04 14:35 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-06-04 11:16 BUG #10526: bad sequence rename gnuplanet@gmail.com
2014-06-04 13:47 ` Vik Fearing <vik.fearing@dalibo.com>
2014-06-04 14:35 ` Tom Lane <tgl@sss.pgh.pa.us>
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