remapping schema names with pg_restore?

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

 



Hi All;


Is it possible to re-map / rename schemas when doing a schema based restore from a custom formatted dump file. I have a dump I created like this:


pg_dump  -Fc  --schema=prod_test  prod_db   >   prod_db.dmp

I want to restore  it into another cluster, into a db named integ_db but I want the schema in the restored db to be named integ_test instead of prod_test


Is there a way  to do this at  pg_restore time? without loading into a schema named prod_test and renaming the schema after the restore?


Thanks in advance




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux