Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id CEC0863412E for ; Fri, 2 Apr 2010 03:03:40 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 11612-02 for ; Fri, 2 Apr 2010 06:03:27 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail4.castsoftware.com (mail4.castsoftware.com [80.124.188.17]) by mail.postgresql.org (Postfix) with ESMTP id EAE79633A98 for ; Fri, 2 Apr 2010 03:03:29 -0300 (ADT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: pg_restore : change schema Date: Fri, 2 Apr 2010 08:03:25 +0200 Message-ID: <30B673D7B5844B4394E188D9FFAEF0990160F9E7@mx01.corp.castsoftware.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ADMIN] pg_restore : change schema Thread-Index: AcrR2LRuK1ilZOWBQvSjen5GIXZt/AAUGiMA References: <30B673D7B5844B4394E188D9FFAEF0990160F94B@mx01.corp.castsoftware.com> From: "Christophe Dore" To: "Francisco Reyes" , "Julio Leyva" Cc: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201004/6 X-Sequence-Number: 34100 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=E9 -----Original Message----- From: pgsql-admin-owner@postgresql.org = [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Francisco Reyes Sent: jeudi 1 avril 2010 22:20 To: Julio Leyva Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] pg_restore : change schema Julio Leyva writes: > What about=A0 alter schema=A0 ? 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 --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin