Re: problem with PQsendQuery/PQgetResult and COPY FROM statement

Поиск
Список
Период
Сортировка
От Massimiliano Poletto
Тема Re: problem with PQsendQuery/PQgetResult and COPY FROM statement
Дата
Msg-id d166fa5e0605241412t15e93259x7413a94262051c77@mail.gmail.com
обсуждение исходный текст
Ответ на Re: problem with PQsendQuery/PQgetResult and COPY FROM statement  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: problem with PQsendQuery/PQgetResult and COPY FROM statement
Список pgsql-hackers
> If you call it exactly once, it'll say that exactly once.  If you keep
> calling it "millions of times", it'll keep saying that.

OK.  I wonder, though, why at some point it does in fact return 0.

> Indeed.  You forgot to "complete the COPY sequence" before returning
> to the PQgetResult loop.  As long as the thing is in COPY mode,
> PQgetResult will return a result saying PGRES_COPY_IN.  The point

Got it.  Thanks.

max


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

Предыдущее
От: Andreas Pflug
Дата:
Сообщение: XLogArchivingActive
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: