Re: Libpq and multithreading

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Libpq and multithreading
Дата
Msg-id 20130112005512.GA3997@momjian.us
обсуждение исходный текст
Ответ на Libpq and multithreading  (Asia <asia123321@op.pl>)
Список pgsql-general
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
connectionsat the same time? 

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

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

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


В списке pgsql-general по дате отправления:

Предыдущее
От: Fredrik.HuitfeldtMadsen@schneider-electric.com
Дата:
Сообщение: Re: Database connections seemingly hanging
Следующее
От: "T. E. Lawrence"
Дата:
Сообщение: reducing number of ANDs speeds up query