Re: [HACKERS] Trouble with COPY IN - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: [HACKERS] Trouble with COPY IN
Date
Msg-id alpine.BSO.2.00.1008070305470.12532@leary.csoft.net
Whole thread Raw
In response to Re: [HACKERS] Trouble with COPY IN  (James William Pye <lists@jwp.name>)
Responses Re: [HACKERS] Trouble with COPY IN  (Kris Jurka <books@ejurka.com>)
List pgsql-jdbc

On Fri, 6 Aug 2010, James William Pye wrote:

> On Aug 6, 2010, at 4:31 PM, Kris Jurka wrote:
>> <binary-copy-end-v2.patch>
>
> I think there's a snag in the patch:
>
> postgres=# COPY data FROM '/Users/jwp/DATA.bcopy' WITH BINARY;
> ERROR:  row field count is -1, expected 1
> CONTEXT:  COPY data, line 4
>
> Probably a quick/small fix away, I imagine.

Hmm, not quite sure why that is.  That seems to imply that it's not using
V3 protocol, but I thought binary copy could only be used with the V3
protocol.  In any case, I think this new patch is more bulletproof.

Kris Jurka

Attachment

pgsql-jdbc by date:

Previous
From: James William Pye
Date:
Subject: Re: [HACKERS] Trouble with COPY IN
Next
From: max
Date:
Subject: one more question about LISTEN / NOTIFY