ecpg thread-safe descriptor

Поиск
Список
Период
Сортировка
От ITAGAKI Takahiro
Тема ecpg thread-safe descriptor
Дата
Msg-id 20071002142425.F4FE.ITAGAKI.TAKAHIRO@oss.ntt.co.jp
обсуждение исходный текст
Ответы Re: ecpg thread-safe descriptor  (Magnus Hagander <magnus@hagander.net>)
Re: ecpg thread-safe descriptor  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-patches
Here is a patch to fix thread-safety of SQL DESCRIPTOR in ecpg.

The global variable 'all_descriptors' is split into per-thread vars.
There was another idea of splitting into per-connection vars, but
I did not do that because there are allocating descriptors before
connection and deallocating after disconnection in the regression test.

The attached descriptor.pgc is a test case for the issue.
It is not included into regression test of ecpg.

If this change is acceptable to be applied to HEAD, I'll start backporting
recent fixes (prepared statement, memory allocation and descriptor) to 8.2
(and older versions if possible).

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center

Вложения

В списке pgsql-patches по дате отправления:

Предыдущее
От: "Hiroshi Saito"
Дата:
Сообщение: Loose check was corrected of win32.mak.
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Loose check was corrected of win32.mak.