Re: [BUGS] Renaming a table leaves orphaned implicit sequences which

2004-05-19 Thread Bruce Momjian
Looks like this TODO item: o Have ALTER TABLE rename SERIAL sequences Sorry we haven't fixed it yet. --- Victor Sudakov wrote: > > Hello. > > I use PostgreSQL 7.4.2 on i386-portbld-freebsd5.2, compiled by GCC cc

Re: [BUGS] Renaming a table leaves orphaned implicit sequences which

2004-04-05 Thread Paul Tillotson
I got bitten by this one also. Perhaps it would be possible to change pg_dump so that it dumps the create table statement with the explicit sequence, rather than the original SQL used to create the table? (This would preserve old dumps and the syntactical sugar which I would not want to forego.) Pa

[BUGS] Renaming a table leaves orphaned implicit sequences which breaks pg_restore.

2004-04-05 Thread Victor Sudakov
Hello. I use PostgreSQL 7.4.2 on i386-portbld-freebsd5.2, compiled by GCC cc (GCC) 3.3.3 [FreeBSD] 20031106 Description: It seems that renaming tables with columns of type "serial" leaves "orphaned" implicit sequences which breaks pg_restore. How to reproduce: 1. Create a table CREATE DATA