BUG #4180: PANIC while PQExec on Client with differen locale from database - Mailing list pgsql-bugs

From bishop
Subject BUG #4180: PANIC while PQExec on Client with differen locale from database
Date
Msg-id 200805172224.m4HMOMax036178@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #4180: PANIC while PQExec on Client with differen locale from database  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
The following bug has been logged online:

Bug reference:      4180
Logged by:          bishop
Email address:      polimax@mail.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.

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: mingw compile error
Next
From: "Dmitriy"
Date:
Subject: BUG #4181: Service PostgreSQL database server 8.2 failed to start