Using one connection object.

Поиск
Список
Период
Сортировка
От sankar
Тема Using one connection object.
Дата
Msg-id Sea2-DAV38xSQWBLYu700000dc7@hotmail.com
обсуждение исходный текст
Список pgsql-interfaces
Hi,
I am using postgresql 7.2 on red hat linux.I am having only one connection to the database thro
PGconn(struct pg_conn ) which serves all the clients. I understand that PGconn is not thread safe.
So from my program I am having mutexes to protect PGconn from multiple access by 2 or more threads.
 
Using this model execution goes thro for around 20/30 queries. After that somehow ExecTuplesOK() call from one thread is blocking for some reason because of which other threads are not able to proceed. (Pls note I have protected call to ExecTuplesOK()  using mutex so that only one  thread can enter it.)
 
If anybody has any idea pls let me know..
 
Thanks in advance
Sankarshana M

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

Предыдущее
От: "Jeroen T. Vermeulen"
Дата:
Сообщение: Re: GetValue(), floats, and locales
Следующее
От: Ramon Alonso Allende
Дата:
Сообщение: Re: lo_import