Error inserting data to bytea column in 8.4

From: "Andrus Moor" <kobruleht2(at)hot(dot)ee>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Error inserting data to bytea column in 8.4
Date: 2009-08-21 15:54:51
Message-ID: BD51BC082F044E8093023C4F3099B3F3@andrusnotebook
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In 8.4, script

create temp table test ( test bytea );
insert into test values(E'\274')

Causes error

ERROR: invalid byte sequence for encoding "UTF8": 0xbc
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".

In 8.2 this script runs OK.

How to insert data to bytea field ?

Andrus

Both server and client are running in windows.

"PostgreSQL 8.4.0, compiled by Visual C++ build 1400, 32-bit"

show client_encoding
"UNICODE"

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-08-21 16:05:51 Re: join from array or cursor
Previous Message Chris Hopkins 2009-08-21 15:29:48 Re: Out of memory on pg_dump