From: Tom Lane <tgl@sss.pgh.pa.us>
To: Richard Huxton <dev@archonet.com>
Cc: Joel Fradkin <jfradkin@wazagua.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: problem with backup and restore (probaly stupit newb thing)
Date: Thu, 03 Feb 2005 13:16:41 -0500
Message-ID: <17474.1107454601@sss.pgh.pa.us> (raw)
In-Reply-To: <4202618C.6010408@archonet.com>
References: <000a01c50a0b$769e48d0$797ba8c0@jfradkin>
<4202618C.6010408@archonet.com>
Richard Huxton <dev@archonet.com> writes:
> Joel Fradkin wrote:
>> ServerVersion: 07.03.0200 PostgreSQL 7.4.6 on i386-redhat-linux-gnu,
>> compiled by GCC i386-redhat-linux-gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2
> OK - let's start here. The syntax here is fine, I just tested it on an
> 8.0 database. Are you sure the DB you are restoring to is version 8?
Looks to me like he's trying to use 8.0 pg_dump/pg_restore to reload
into a 7.4 server. This definitely won't work without specifying
--disable-dollar-quoting to pg_dump; and if you care about restoring
object ownership correctly, also --use-set-session-authorization.
I don't recall if there are any other gotchas.
The unicode issue I'm not sure about. Perhaps the original database was
SQL_ASCII encoding and so was allowed to contain byte sequences that
aren't legal unicode?
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, dev@archonet.com, jfradkin@wazagua.com
Subject: Re: problem with backup and restore (probaly stupit newb thing)
In-Reply-To: <17474.1107454601@sss.pgh.pa.us>
* 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