Re: Invalid byte sequence

Поиск
Список
Период
Сортировка
От Yambu
Тема Re: Invalid byte sequence
Дата
Msg-id CALhHtcDQRXRqmZCT2LVk+F470-8qtrOux-W0DDnA=O4Dho2hVg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Invalid byte sequence  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список pgsql-admin
Thanks Laurenz, any suggestions on what tool I can use to clean the data?

On Thu, Jul 1, 2021 at 9:37 AM Laurenz Albe <laurenz.albe@cybertec.at> wrote:
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 по дате отправления:

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: Invalid byte sequence
Следующее
От: Holger Jakobs
Дата:
Сообщение: Re: Invalid byte sequence