Search Postgresql Archives

Re: Libpq and multithreading

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 11, 2013 at 04:27:42PM +0100, Asia wrote:
> Hello,
> 
> I am trying to use libpq in two threads, the issue is that I am getting access violation after several successful connections.
> Each thread connects to different db and disconnects immediately after making a conenction.
> 
> So my question is if this is supported by libpq? Is it possible to use it in more than one thread and make connections at the same time?

Each connection can be created and accessed from only one thread.

-- 
  Bruce Momjian  <bruce@xxxxxxxxxx>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux