Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 4FCB91337B4F for ; Tue, 30 Nov 2010 11:07:03 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 07424-02 for ; Tue, 30 Nov 2010 15:06:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 5E3F81337B5C for ; Tue, 30 Nov 2010 11:06:55 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id oAUF6n7H025525; Tue, 30 Nov 2010 10:06:50 -0500 (EST) To: Samuel Stearns cc: "pgsql-admin@postgresql.org" Subject: Re: Setting Schema on Restore In-reply-to: <68B59BEDCD36854AADBDF17E91B2937A0784188839@EXCHMAIL.staff.internode.com.au> References: <68B59BEDCD36854AADBDF17E91B2937A0784188839@EXCHMAIL.staff.internode.com.au> Comments: In-reply-to Samuel Stearns message dated "Tue, 30 Nov 2010 15:46:07 +1030" Date: Tue, 30 Nov 2010 10:06:49 -0500 Message-ID: <25524.1291129609@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/251 X-Sequence-Number: 36217 Samuel Stearns writes: > I want to restore into a specific schema. The only way to do that is to hand-edit the dump script. If you're feeling brave you could try letting "sed" do it; but unless the schema name being replaced is pretty unusual, the risk of false matches seems high. regards, tom lane