Re: BUG #1316: Alter Name of a Serial Field won't change the corresponding SEQUENCE name
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: "Hongyi Gao" <admin@listfusion.net>
Cc: pgsql-bugs@postgresql.org
Date: 2004-11-12T17:19:52Z
Lists: pgsql-bugs
"PostgreSQL Bugs List" <pgsql-bugs@postgresql.org> writes: > if I alter table atable alter field1 rename to field2 > it becomes atable(field2 Serial) > however, the sequence stays: atable_field1_seq > it's not tablename_fieldname_seq any more It's intended to do that. > This will cause problem when we restore a backup: pg_dump in 8.0 has a workaround for this. regards, tom lane