Search Postgresql Archives

renaming sequences ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




What is the correct way to rename a sequence?

I keep running into this bug:
	http://archives.postgresql.org/pgsql-bugs/2007-09/msg00092.php

Where "ALTER TABLE/SEQUENCE RENAME TO ____" will rename the sequence, but the 'sequence_name' attribute in 'select * from sequence' and (i believe) the pg catalog info will keep the original name

this creates an issue with most ORM software under python, perl, php which will pull the old sequence name.

the 'fix' i found is to just dump , drop, create and reload the database -- which works perfect on small databases. but i'm left wondering what the correct fix is for medium/larger databases.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux