From: | "Christophe Dore" <c(dot)dore(at)castsoftware(dot)com> |
---|---|
To: | "Francisco Reyes" <lists(at)stringsutils(dot)com>, "Julio Leyva" <jcleyva(at)hotmail(dot)com> |
Cc: | <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: pg_restore : change schema |
Date: | 2010-04-02 06:03:25 |
Message-ID: | 30B673D7B5844B4394E188D9FFAEF0990160F9E7@mx01.corp.castsoftware.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Well, that would work if the schema, when restored, is free. If not, you'd like to set the schema name in which you restore before restoring.
When you use Oracle, you can, using exp/imp, change the schema you restore in by setting properly the program arguments. I understand that this is not possible with postgres, and this would be a nice feature.
Regards
--
Christophe Doré
-----Original Message-----
From: pgsql-admin-owner(at)postgresql(dot)org [mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of Francisco Reyes
Sent: jeudi 1 avril 2010 22:20
To: Julio Leyva
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] pg_restore : change schema
Julio Leyva writes:
> What about alter schema ?
How would that help?
If I understand correctly, the original poster is trying to do something
like:
Source DB
schema1.table1
And restore it to
schema2.table1
From | Date | Subject | |
---|---|---|---|
Next Message | Gnanakumar | 2010-04-02 06:35:03 | Database clone stuck in the middle |
Previous Message | Jordz | 2010-04-02 02:53:29 | Postgresql-8.4 won't boot at startup on 9.10 |