From: Javier Alperte <javier.alperte@polymita.com>
To: pgsql-admin@postgresql.org
Subject: Problem with BYTEA data types restoring dumped data from another postgres database
Date: Tue, 28 Jan 2003 17:09:27 +0100
Message-ID: <001401c2c6e7$a2a40b40$14001aac@spock> (raw)
I'm having the next problem with the BYTEA field types, when I try to
restore data into a new database from another postgres database (same
version, 7.2).
ERROR: Invalid UNICODE character sequence found (0xed5c30) pg_restore:
[archiver (db)] could not execute query: ERROR: Invalid UNICODE
character sequence found (0xed5c30) pg_restore: *** aborted because of
error
I'm running postgres in a Windows XP Pro system under Cygwin.
The dump command that I was run is (I also need export BLOB fields)
(This server is a Linux RedHat 7.3 with Postgres 7.2 system):
pg_dump -h 172.16.10.2 -Ft -b -D "databasename" >
"databasename".dmp
The sequence of actions that I'm doing are: (This another server is a
Windows XP Pro with Cygwin+Postgres 7.2 system)
dropdb "databasename"
createdb -E UNICODE -T template0 "databasename"
pg_restore.exe -Ft -v -d "databasename" "databasename".dmp
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: javier.alperte@polymita.com
Subject: Re: Problem with BYTEA data types restoring dumped data from another postgres database
In-Reply-To: <001401c2c6e7$a2a40b40$14001aac@spock>
References: <001401c2c6e7$a2a40b40$14001aac@spock>
* 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