ecpg thread-safe descriptor - Mailing list pgsql-patches

From ITAGAKI Takahiro
Subject ecpg thread-safe descriptor
Date
Msg-id 20071002142425.F4FE.ITAGAKI.TAKAHIRO@oss.ntt.co.jp
Whole thread Raw
Responses Re: ecpg thread-safe descriptor
Re: ecpg thread-safe descriptor
List 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

Attachment

pgsql-patches by date:

Previous
From: "Hiroshi Saito"
Date:
Subject: Loose check was corrected of win32.mak.
Next
From: Magnus Hagander
Date:
Subject: Re: Loose check was corrected of win32.mak.