Re: Libpq and multithreading

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Asia <asia123321(at)op(dot)pl>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Libpq and multithreading
Date: 2013-01-17 17:35:51
Message-ID: CAHyXU0w97a-rBRd8t7pGC=i24P7LBiuewP-kzgb_EvZtHe+eFg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jan 14, 2013 at 9:57 AM, Asia <asia123321(at)op(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Paul Jungwirth 2013-01-17 18:03:51 Determine if an index is a B-tree, GIST, or something else?
Previous Message Tom Lane 2013-01-17 15:35:50 Re: String comparison and the SQL standard