Re: [JDBC] Trouble with COPY IN

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: [JDBC] Trouble with COPY IN
Дата
Msg-id alpine.BSO.2.00.1007221723230.16703@leary.csoft.net
обсуждение исходный текст
Ответы Re: [JDBC] Trouble with COPY IN  (Robert Haas <robertmhaas@gmail.com>)
Re: [JDBC] Trouble with COPY IN  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Per discussion and investigation on the -jdbc list, the server appears to
violate the frontend/backend protocol when binary copy data is sent to the
server.  Upon receiving the binary copy end of data marker (a -1 field
count), the server immediately responds with CommandComplete and
ReadyForQuery without waiting for the frontend to issue CopyDone or
CopyFail.  This confuses the JDBC driver as it doesn't think the command
sequence should have finished yet.

Attached is a patch to make the server continue to consume protocol data
until instructed to stop by the client in the same way as copying text
data to the server currently works.

http://www.postgresql.org/docs/8.4/static/protocol-flow.html#PROTOCOL-COPY
http://www.postgresql.org/docs/8.4/static/sql-copy.html

Kris Jurka

Вложения

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [9.1] pg_stat_get_backend_server_addr
Следующее
От: Kjell Rune Skaaraas
Дата:
Сообщение: Re: Add column if not exists (CINE)