Re: pg_restore schema dump to schema with different name

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

 




The only way to do that is to create a new database, import the data
there, rename the schema and dump again.

Then import that dump into the target database.

Or maybe (if you can afford to have source_schema unavailable for some
time) :

* rename source_schema to tmp_source
* import (that will re-create  source_schema)
* rename source_schema to destination_schema
* rename back tmp_source to source_schema





[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux