Re: ERROR: invalid byte sequence for encoding UTF8: 0x00

2024-01-09 Thread Tom Lane
Laurenz Albe writes: > On Tue, 2024-01-09 at 17:48 +0530, Kiran K V wrote: >> I have a table with bytea column and trying to load the data using copy >> command. >> But Copy command is failing with >> "ERROR: invalid byte sequence for encoding UTF8: 0x00. >> Why postgresql is failing to load when

Re: ERROR: invalid byte sequence for encoding UTF8: 0x00

2024-01-09 Thread Laurenz Albe
On Tue, 2024-01-09 at 17:48 +0530, Kiran K V wrote: > I have a table with bytea column and trying to load the data using copy > command. > But Copy command is failing with > "ERROR: invalid byte sequence for encoding UTF8: 0x00. > Why postgresql is failing to load when data contains 0x00. > How to