BUG #7920: Sequence rename leave stale value for sequence_name - Mailing list pgsql-bugs

From maxim.boguk@gmail.com
Subject BUG #7920: Sequence rename leave stale value for sequence_name
Date
Msg-id E1UDARB-0007MF-SE@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #7920: Sequence rename leave stale value for sequence_name  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      7920
Logged by:          Maksym Boguk
Email address:      maxim.boguk@gmail.com
PostgreSQL version: 9.2.3
Operating system:   Linux
Description:        =


sequence_name left stale after sequence rename:

Test case shows same problem on versions 9.0 9.1 9.2:

[postgres]=3D# create sequence qqq;

[postgres]=3D# SELECT sequence_name FROM qqq;
 sequence_name
---------------
 qqq

[postgres]=3D# alter sequence qqq rename to lalala;

--surprise                              [postgres]=3D# SELECT sequence_name
FROM lalala;
 sequence_name
---------------
 qqq


pg_dump -F p -s postgres | grep qqq
--empty

pgsql-bugs by date:

Previous
From: adrianopatrick@gmail.com
Date:
Subject: BUG #7918: limitation of pagination with LIMIT and OFFSET
Next
From: Andres Freund
Date:
Subject: Re: BUG #7920: Sequence rename leave stale value for sequence_name