Re: POSIX and libpq

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: POSIX and libpq
Дата
Msg-id 475FE4FF.1030807@archonet.com
обсуждение исходный текст
Ответ на Re: POSIX and libpq  (luca.ciciriello@email.it)
Список pgsql-general
luca.ciciriello@email.it wrote:
> I've a multithread application running on Linux. In each thread i've a loop
> performing a single INSERT operation on the DB.
> Sometimes (not always), two of the three thread die apparently without any
> reason. The strange thing is that if I remove the store operation from
> the threads, all runs fine. Viceversa, if I run the INSERT loops out of the
> threads all runs the DB operation are executed without any problems.
>
> On Linux I'm super user and I create the three thread using the posix
> function pthread_create. The same code, on windows, doesn't present any
> problem (in windows  I use CreateThread function).

It's almost certainly a threading problem. Have you read the relevant
section of the manuals?
http://www.postgresql.org/docs/8.2/static/libpq-threading.html


--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Ashish Karalkar
Дата:
Сообщение: Re: very slow query
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: executing a procedure with delay