BUG #4180: PANIC while PQExec on Client with differen locale from database

Lists: pgsql-bugs
From: "bishop" <polimax(at)mail(dot)ru>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #4180: PANIC while PQExec on Client with differen locale from database
Date: 2008-05-17 22:24:22
Message-ID: 200805172224.m4HMOMax036178@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 4180
Logged by: bishop
Email address: polimax(at)mail(dot)ru
PostgreSQL version: 8.3.1
Operating system: Vista Home Premium
Description: PANIC while PQExec on Client with differen locale from
database
Details:

The code

PQsetClientEncoding(conn,"WIN1251");
res = PQexec(conn, "INSERT INTO \"table_name\" (\"name\") VALUES
('test');");

return such error message (sorry for localised part of message)

PANIC: ERRORDATA_STACK_SIZE exceeded

,

.

Server encoding UTF8, database encoding UTF8 client encoding WIN1251

The previouse version 8.2 work well with this code.


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "bishop" <polimax(at)mail(dot)ru>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4180: PANIC while PQExec on Client with differen locale from database
Date: 2008-05-18 20:17:22
Message-ID: 7481.1211141842@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

"bishop" <polimax(at)mail(dot)ru> writes:
> PQsetClientEncoding(conn,"WIN1251");
> res = PQexec(conn, "INSERT INTO \"table_name\" (\"name\") VALUES
> ('test');");

What do you get, exactly, if you do the same command but with
client_encoding = UTF8? I suppose this must be a problem with
failing to convert the encoding of an error message, but without
knowing what the original error message is, it's hard to investigate.

regards, tom lane