Re: Libpq and multithreading - Mailing list pgsql-general

From Merlin Moncure
Subject Re: Libpq and multithreading
Date
Msg-id CAHyXU0w97a-rBRd8t7pGC=i24P7LBiuewP-kzgb_EvZtHe+eFg@mail.gmail.com
Whole thread Raw
In response to Re: Libpq and multithreading  (Asia <asia123321@op.pl>)
List pgsql-general
On Mon, Jan 14, 2013 at 9:57 AM, Asia <asia123321@op.pl> wrote:
> It is not possible because connection is local variable in both thread functions, no common variables are used.
>
> I checked that it also crashes without SSL. Two threads connecting to the same server, different databases.

hm, where is your libpq coming from -- is it possible you are using
the non thread-safe variant?

are you 100% sure there is no thread interplay on the connection itself?

is it possible to get a backtrace for the access violation?

merlin


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: String comparison and the SQL standard
Next
From: Paul Jungwirth
Date:
Subject: Determine if an index is a B-tree, GIST, or something else?