PQendcopy error in multithreading

Поиск
Список
Период
Сортировка
От Durgaprasad Pawar
Тема PQendcopy error in multithreading
Дата
Msg-id 158667.93183.qm@web7703.mail.in.yahoo.com
обсуждение исходный текст
Ответы Re: PQendcopy error in multithreading  (Sean Davis <sdavis2@mail.nih.gov>)
Список pgsql-novice
Hi,
        I am trying to update multiple tables using the 'PQputline/PQendcopy' function. The code works fine if the tables are updated one after the other.
However, if there are multiple threads trying to copy data into different tables, the function fails. i.e. if one thread has started its copy operation and if some other thread also starts its copy operation (on different table), one of them fails.
Strangely, the PQputline function is successful for both the threads after the end delimiter is sent (\.).
What might be the reason for this PQendcopy failure? How do I get the exact error message after the failure?


Download prohibited? No problem. CHAT from any browser, without download.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Returning multiple values from a function
Следующее
От: Sean Davis
Дата:
Сообщение: Re: PQendcopy error in multithreading