ecpg thread-safe descriptor

Поиск
Список
Период
Сортировка
Искать
От
ITAGAKI Takahiro
Тема
ecpg thread-safe descriptor
Дата
Msg-id
20071002142425.F4FE.ITAGAKI.TAKAHIRO@oss.ntt.co.jp
Список
Дерево обсуждения
ecpg thread-safe descriptor ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>
Re: ecpg thread-safe descriptor Magnus Hagander <magnus@hagander.net>
Re: ecpg thread-safe descriptor Tom Lane <tgl@sss.pgh.pa.us>
Re: ecpg thread-safe descriptor Michael Meskes <meskes@postgresql.org>
Re: ecpg thread-safe descriptor Andrew Dunstan <andrew@dunslane.net>
Re: ecpg thread-safe descriptor Michael Meskes <meskes@postgresql.org>
Re: ecpg thread-safe descriptor Tom Lane <tgl@sss.pgh.pa.us>
Re: ecpg thread-safe descriptor Tom Lane <tgl@sss.pgh.pa.us>
Re: ecpg thread-safe descriptor Michael Meskes <meskes@postgresql.org>
Re: ecpg thread-safe descriptor Magnus Hagander <magnus@hagander.net>
Re: ecpg thread-safe descriptor Michael Meskes <meskes@postgresql.org>
Re: ecpg thread-safe descriptor Magnus Hagander <magnus@hagander.net>
ecpg DllMain fix ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>
Re: ecpg DllMain fix Michael Meskes <meskes@postgresql.org>
Re: ecpg DllMain fix Magnus Hagander <magnus@hagander.net>
Re: ecpg DllMain fix Michael Meskes <meskes@postgresql.org>
Re: ecpg DllMain fix Magnus Hagander <magnus@hagander.net>
Re: ecpg DllMain fix Michael Meskes <meskes@postgresql.org>
Re: ecpg DllMain fix Magnus Hagander <magnus@hagander.net>
Re: ecpg DllMain fix Magnus Hagander <magnus@hagander.net>
Re: ecpg DllMain fix Michael Meskes <meskes@postgresql.org>
Re: ecpg DllMain fix Magnus Hagander <magnus@hagander.net>
Re: ecpg thread-safe descriptor Magnus Hagander <magnus@hagander.net>
Re: ecpg thread-safe descriptor Michael Meskes <meskes@postgresql.org>
Re: ecpg thread-safe descriptor Magnus Hagander <magnus@hagander.net>
Re: ecpg thread-safe descriptor Tom Lane <tgl@sss.pgh.pa.us>
Re: ecpg thread-safe descriptor Michael Meskes <meskes@postgresql.org>
Re: ecpg thread-safe descriptor ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>
Re: ecpg thread-safe descriptor Michael Meskes <meskes@postgresql.org>
Re: ecpg thread-safe descriptor Magnus Hagander <magnus@hagander.net>
Re: ecpg thread-safe descriptor Michael Meskes <meskes@postgresql.org>
Re: ecpg thread-safe descriptor Michael Meskes <meskes@postgresql.org>
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
Дата:
От: Magnus Hagander
Дата:
FAQ