Search Postgresql Archives

Simplest syntax (or a UI?) to rename columns and sequences and constraints (etc)?

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

 



Is there a SQL/ALTER (pg proprietary or otherwise) syntax that uniformly changes the names off all object tied to a column when that column name is changed? Or can anyone recommend a UI that does this?

For example in a table 'foo' I have a 'rowid' (pk and auto increment) and I choose to rename it. The default naming convention given to the supporting sequence is 'foo_rowid_seq', so (ignoring safely/ambiguity issues) is it possible rename 'rowid' and have the changes cascade to sequences, constraints, etc?

Ken



---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

[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