Re: libpy and ENABLE_THREAD_SAFETY=1

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: <fmi-soft(at)gmx(dot)de>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: libpy and ENABLE_THREAD_SAFETY=1
Date: 2005-08-15 14:57:12
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE6C78A7@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> >>Is the standard libpq.dll distributed by PostgreSQL8.0 for windows
> >>thread safe by default ?
> >>
> >>
> >
> >No.
> >It is safe as long as you use each PGconn on a separate
> thread but you
> >cannot share the same PGconn between threads.
> >
> >//Magnus
> >
> >
> >
> >
> But what if I compile the DLL using ENABLE_THREAD_SAFETY ?
> Can I then use one connection for multiple threads ?

In theory, but I beleive there are build issues in the currently
released version when it comes to building on win32 with
ENABLE_THREAD_SAFETY.

//Magnus

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tony Caduto 2005-08-15 15:02:01 Question about the NAME type used in pg_proc and pg_class
Previous Message Magnus Hagander 2005-08-15 14:56:47 Re: Authenticating using Windows XP login