Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 272F01337B88 for ; Tue, 30 Nov 2010 19:34:35 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 40359-09 for ; Tue, 30 Nov 2010 23:34:27 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from imail.internode.com.au (exchht01-ext.internode.com.au [203.26.95.185]) by mail.postgresql.org (Postfix) with ESMTP id 4D36E1337B7E for ; Tue, 30 Nov 2010 19:34:27 -0400 (AST) Received: from EXCHMAIL.staff.internode.com.au ([169.254.2.207]) by exchht01.staff.internode.com.au ([::1]) with mapi; Wed, 1 Dec 2010 10:04:24 +1030 From: Samuel Stearns To: Tom Lane CC: "pgsql-admin@postgresql.org" Date: Wed, 1 Dec 2010 10:04:24 +1030 Subject: Re: Setting Schema on Restore Thread-Topic: [ADMIN] Setting Schema on Restore Thread-Index: AcuQoDpz1t2qPHIkSrqhpHf4aFsyrgARt56A Message-ID: <68B59BEDCD36854AADBDF17E91B2937A07841888C9@EXCHMAIL.staff.internode.com.au> References: <68B59BEDCD36854AADBDF17E91B2937A0784188839@EXCHMAIL.staff.internode.com.au> <25524.1291129609@sss.pgh.pa.us> In-Reply-To: <25524.1291129609@sss.pgh.pa.us> Accept-Language: en-US, en-AU Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-AU Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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/263 X-Sequence-Number: 36229 Thanks, Tom! -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us]=20 Sent: Wednesday, 1 December 2010 1:37 AM To: Samuel Stearns Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] Setting Schema on Restore=20 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