Re: Invalid byte sequence - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: Invalid byte sequence
Date
Msg-id 8a70f9f6d154644f6c7f000e661a7f0779cba774.camel@cybertec.at
Whole thread Raw
In response to Invalid byte sequence  (Yambu <hyambu@gmail.com>)
Responses Re: Invalid byte sequence
List pgsql-admin
On Thu, 2021-07-01 at 09:29 +0200, Yambu wrote:
> ERROR:  invalid byte sequence for encoding "UTF8": 0x00
> CONTEXT:  COPY table1, line 377617

That means that there is an ASCII 0 byte in a string somewhere in the file.
This character is not allowed in strings in PostgreSQL.
You will have to fix the data before you can load them into PostgreSQL.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




pgsql-admin by date:

Previous
From: Yambu
Date:
Subject: Invalid byte sequence
Next
From: Yambu
Date:
Subject: Re: Invalid byte sequence