From: Gregory S. Williamson <gsw@globexplorer.com>
To: pgsql-admin@postgresql.org
Subject: Something like pg_dump for 7.4
Date: Thu, 16 Feb 2006 21:11:13 -0800
Message-ID: <71E37EF6B7DCC1499CEA0316A2568328024BBF9D@loki.wc.globexplorer.net> (raw)
I am trying to migrate a modest sized database (the unload file is just under a gigabyte) which is moderately complex, using schemas and the like from 7.4 to 8.1
Alas, pg_dump appears to incompatable with my needs as it keeps introducing invalid UTF-8 characters.
I have gone back and changed the offending data rows with SQL to make damned sure there are no illegal characters. I redump, compress the thing, scp it and try to reload. Same error every time:
psql:glacier_load.sql:1017: ERROR: invalid UTF-8 byte sequence detected near byte 0x96
CONTEXT: COPY clients, line 1751, column client_name: "XYZ Media AB&E"
psql:glacier_load.sql:3019: ERROR: current transaction is aborted, commands ignored until end of transaction block
See that double space after "Media" ? That's actually a single space, a dash, and another space: "XYZ Media - AB&E", but every export turns it into:
XYZ Media <96> AB&E
Is there any way to do this ? I can't edit the resulting dump file by hand -- it's huge. And pg_dump on 7.4 does not know how to a table inside a schema -- it seems to be all or nothing.
TIA,
Greg Williamson
DBA
GlobeXplorer LLC
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: gsw@globexplorer.com
Subject: Re: Something like pg_dump for 7.4
In-Reply-To: <71E37EF6B7DCC1499CEA0316A2568328024BBF9D@loki.wc.globexplorer.net>
References: <71E37EF6B7DCC1499CEA0316A2568328024BBF9D@loki.wc.globexplorer.net>
* 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