Re: problem with backup and restore (probaly stupit newb thing) - Mailing list pgsql-sql

From Tom Lane
Subject Re: problem with backup and restore (probaly stupit newb thing)
Date
Msg-id 17474.1107454601@sss.pgh.pa.us
Whole thread Raw
In response to Re: problem with backup and restore (probaly stupit newb thing)  (Richard Huxton <dev@archonet.com>)
Responses Re: problem with backup and restore (probaly stupit newb thing)
List pgsql-sql
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


pgsql-sql by date:

Previous
From: PFC
Date:
Subject: Re: PL/PgSQL - returning multiple columns ...
Next
From: Michael Fuhr
Date:
Subject: Re: plpgsql functions to 'C' functions