Re: Win32 Thread safetyness - Mailing list pgsql-hackers

From Dave Page
Subject Re: Win32 Thread safetyness
Date
Msg-id E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC9CEF@ratbert.vale-housing.co.uk
Whole thread Raw
In response to Win32 Thread safetyness  ("Dave Page" <dpage@vale-housing.co.uk>)
Responses Re: Win32 Thread safetyness  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers

> -----Original Message-----
> From: Bruce Momjian [mailto:pgman@candle.pha.pa.us]
> Sent: 28 August 2005 22:56
> To: Dave Page
> Cc: pgsql-hackers@postgresql.org
> Subject: Re: [HACKERS] Win32 Thread safetyness
>
>
> Well, actually I tried to run configure --enable-thread-safety on a
> MinGW platform and got:
>
>     configure: error: pthread.h not found, required for
> --enable-thread-safety
>     You need to run the 'configure' program first. See the file
>     'INSTALL' for installation instructions.
>     make: *** [all] Error 1
>
> Can we not compile --enable-thread-safety without pthreads on
> Win32?  I
> am thinking that is true because we are going to need
> pthreads for ecpg.

Correct - it is needed for ecpg, but not libpq.

> > Anyhoo, I can patch ecpglib to use the full pthreads with
> my hack above
> > if people think that is the way to go for the time being.
>
> OK.
>

Attached (without the hack). Libpq will use it's minimal pthread
implementation, ecpg will use pthreadGC2.

You'll need to run autoconf after applying.

Regards, Dave.

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Upcoming conferences for me
Next
From: Bruce Momjian
Date:
Subject: Re: Win32 Thread safetyness