Re: BUG #5164: COPY command: invalid byte sequence 0x80 - Mailing list pgsql-bugs

From Heikki Linnakangas
Subject Re: BUG #5164: COPY command: invalid byte sequence 0x80
Date
Msg-id 4AF1753F.3040303@enterprisedb.com
Whole thread Raw
In response to BUG #5164: COPY command: invalid byte sequence 0x80  ("Bogdan Mihaila" <bm2004mvc@yahoo.com>)
List pgsql-bugs
Bogdan Mihaila wrote:
> ERROR:  invalid byte sequence for encoding "UTF8": 0x80
> HINT:  This error can also happen if the byte sequence does not match the
> encoding expected by the server, which is controlled by "client_encoding".
> CONTEXT:  COPY acte, line 51

There is a byte sequence that's invalid for UTF-8 on line 51 in the dump
file. I believe 8.3 is stricter about rejecting invalid UTF-8 strings
than previous versions, so it's possible that you had a garbled
character in the 8.1 database, which throws an error when copied into a
8.3 server. You need to fix the invalid character either in the dump
file or in the 8.1 database.

--
  Heikki Linnakangas
  EnterpriseDB   http://www.enterprisedb.com

pgsql-bugs by date:

Previous
From: Craig Ringer
Date:
Subject: Re: BUG #5163: Admin can't connect and won't use port 5432
Next
From: Heikki Linnakangas
Date:
Subject: Re: BUG #4961: pg_standby.exe crashes with no args