Re: Aim of --enable-thread-safety ?

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Christopher Browne <cbbrowne(at)acm(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Aim of --enable-thread-safety ?
Date: 2006-07-10 17:39:44
Message-ID: 200607101739.k6AHdi406550@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Christopher Browne wrote:
> Alexandra(dot)Dante(at)bull(dot)net (DANTE Alexandra) wrote:
> > I wonder if this compilation option is really taken into account as
> > PostgreSQL is not multi-threading but multi-processing.
> > I have read that without this option, the libpq won't know anything
> > about threads and may indeed have problems, but could you explain me
> > how this option runs ?
>
> > It is not clear for me the aim of this option in an multi-processing
> > environment...
> > Is it possible to force PostgreSQL to be multi-threaded ?
>
> This option is all about allowing you to have multi-threaded *client*
> applications.
>
> That is, applications that many have multiple threads where threads
> can hold onto database connections.

Uh, the documentation is very clear on the purpose of this option:

<term><option>--enable-thread-safety</option></term>
<listitem>
<para>
Make the client libraries thread-safe. This allows
concurrent threads in <application>libpq</application> and
<application>ECPG</application> programs to safely control
their private connection handles. This option requires adequate
threading support in your operating system.

Is there something unclear about it?

--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message marcelo Cortez 2006-07-10 17:44:20 encoding bug or feature?
Previous Message Karen Hill 2006-07-10 17:33:52 US Telephone Number Type