Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2CFEB477256 for ; Tue, 28 Jan 2003 11:25:45 -0500 (EST) Received: from polymita.com (217-126-10-152.uc.nombres.ttd.es [217.126.10.152]) by postgresql.org (Postfix) with SMTP id DF388476FA4 for ; Tue, 28 Jan 2003 11:09:34 -0500 (EST) Received: (qmail 17857 invoked by uid 0); 28 Jan 2003 16:14:27 -0000 Received: from unknown (HELO spock) (80.34.174.145) by 0 with SMTP; 28 Jan 2003 16:14:27 -0000 From: "Javier Alperte" To: 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> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0015_01C2C6F0.04687340" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/312 X-Sequence-Number: 7154 This is a multi-part message in MIME format. ------=_NextPart_000_0015_01C2C6F0.04687340 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_0015_01C2C6F0.04687340 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
I'm havin= g the next=20 problem with the BYTEA field types, when I try to restore data into a new= =20 database from another postgres database (same version, 7.2).<= /DIV>
 
ERROR:&nb= sp; Invalid=20 UNICODE character sequence found (0xed5c30) pg_restore: [archiver (db)] cou= ld=20 not execute query: ERROR:  Invalid UNICODE character sequence found=20 (0xed5c30) pg_restore: *** aborted because of error
 
I'm runni= ng postgres=20 in a Windows XP Pro system under Cygwin.
 
The dump = command=20 that I was run is (I also need export BLOB fields) (This server is a Linux= =20 RedHat 7.3 with Postgres 7.2 system):
 
     pg_dump -h= =20 172.16.10.2 -Ft -b -D "databasename" > "databasename".dmp
 
The seque= nce of=20 actions that I'm doing are: (This another server is a Window= s XP=20 Pro with Cygwin+Postgres 7.2 system)
 
    dropdb "databasename"
 
    createdb -E UNICODE -T template0 "databasename"
 
 &nb= sp; =20 pg_restore.exe -Ft -v -d "databasename" "databasename".dmp
 
 
   =20
------=_NextPart_000_0015_01C2C6F0.04687340--