[Dbmail-dev] Re: Postgres RC8? Changelog

2004-08-15 Thread Sergey V. Spiridonov
Sumbry][ wrote: And of course in Postgres, there is no RENAME INDEX or RENAME SEQUENCE command. 'alter table rename' works also for sequence -- Best regards, Sergey Spiridonov

Re: [Dbmail-dev] How to migrate PostgreSQL to table name prefixes?

2004-08-15 Thread Matthew T. O'Connor
> So I renamed all sequences: > ALTER TABLE alias_idnr_seq RENAME TO dbmail_alias_idnr_seq; > ALTER TABLE user_idnr_seq RENAME TO dbmail_user_idnr_seq; > ALTER TABLE mailbox_idnr_seq RENAME TO dbmail_mailbox_idnr_seq; > ALTER TABLE physmessage_id_seq RENAME TO dbmail_physmessage_id_seq; > ALTER TAB

[Dbmail-dev] How to migrate PostgreSQL to table name prefixes?

2004-08-15 Thread Thomas Mueller
Hi, does anyone have a sql script to migrate a PostgreSQL database to table name prefixes (it would be a good habit to only commit changes if there is a script to migrate the database) ? I tried the following: ALTER TABLE acl RENAME TO dbmail_acl; ALTER TABLE aliases RENAME TO dbmail_aliases; ALT