From: Samuel Stearns <SStearns@internode.com.au>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Setting Schema on Restore
Date: Wed, 1 Dec 2010 10:04:24 +1030
Message-ID: <68B59BEDCD36854AADBDF17E91B2937A07841888C9@EXCHMAIL.staff.internode.com.au> (raw)
In-Reply-To: <25524.1291129609@sss.pgh.pa.us>
References: <68B59BEDCD36854AADBDF17E91B2937A0784188839@EXCHMAIL.staff.internode.com.au>
<25524.1291129609@sss.pgh.pa.us>
Thanks, Tom!
-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Wednesday, 1 December 2010 1:37 AM
To: Samuel Stearns
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Setting Schema on Restore
Samuel Stearns <SStearns@internode.com.au> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: SStearns@internode.com.au, tgl@sss.pgh.pa.us
Subject: Re: Setting Schema on Restore
In-Reply-To: <68B59BEDCD36854AADBDF17E91B2937A07841888C9@EXCHMAIL.staff.internode.com.au>
References: <68B59BEDCD36854AADBDF17E91B2937A0784188839@EXCHMAIL.staff.internode.com.au> <25524.1291129609@sss.pgh.pa.us> <68B59BEDCD36854AADBDF17E91B2937A07841888C9@EXCHMAIL.staff.internode.com.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox