Re: Threads in PSQL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Threads in PSQL
Дата
Msg-id 3871.1069028092@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Threads in PSQL  (Sergey Belikov <belikov@bnl.gov>)
Список pgsql-novice
Sergey Belikov <belikov@bnl.gov> writes:
> ... Each thread
> creates it's own PGconn connection, and starts lo_export(conn, loid,
> filename) procedure. The problem is: after starting 2-3 threads SELECT
> query of the main program  fails because "another command is already in
> progress".

I'll bet lunch that you have not actually created a PGconn for each
thread --- or else that one of the threads is using the wrong PGconn
object.

            regards, tom lane

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

Предыдущее
От: Sergey Belikov
Дата:
Сообщение: Threads in PSQL
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: problem with COPY command