ecpg DllMain fix - Mailing list pgsql-patches

From ITAGAKI Takahiro
Subject ecpg DllMain fix
Date
Msg-id 20071003103710.2615.ITAGAKI.TAKAHIRO@oss.ntt.co.jp
Whole thread Raw
In response to Re: ecpg thread-safe descriptor  (Magnus Hagander <magnus@hagander.net>)
Responses Re: ecpg DllMain fix
List pgsql-patches
Magnus Hagander <magnus@hagander.net> wrote:

> Absolutely, but we need to fix the DllMain thing first.

Here is a patch to remove DllMain from libecpg on Win32 build.
I brought the initialization routine from libpq and implemented
pthread_once() using a lock that serializes all pthread_once calls.
I don't have msvc build environment, but I hope it will fix the
build failure on it.

On another matter, this patch includes removing descriptors field in
struct connection. This was my mistake in the previous fix of descriptors.

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


Attachment

pgsql-patches by date:

Previous
From: "Hiroshi Saito"
Date:
Subject: Re: initdb of regression test failed.
Next
From: ITAGAKI Takahiro
Date:
Subject: Re: initdb of regression test failed.