Re: COPY support

From: Kris Jurka <books(at)ejurka(dot)com>
To: ritchie turner <ritchie(at)ipowerhouse(dot)com>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: COPY support
Date: 2003-11-18 04:25:20
Message-ID: Pine.LNX.4.33.0311172318130.13463-100000@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc


On Mon, 17 Nov 2003, ritchie turner wrote:
>
> I'm trying to optimise some sql inserts I have by using the COPY command
> instead. I'm connecting from Java using 7.4 beta 3. It works at the command
> line, but I can't get it to work from Java. I'm doing an executeUpdate() on
> the COPY string below in the hope it works, but ....

COPY requires special protocol level support so this won't work.

> I see there was some traffic on this list regard special copy support in the
> driver, did it make it in? Can't see it.

In February of last year Michael Adler made a patch to support copy, but
it was rejected because the copy protocol was broken and a bad copy would
completely hose your Connection. With the new V3 protocol in 7.4 it makes
copy errors recoverable so it can be implemented safely. It's on my todo
list to update his patch for the current driver, but I haven't gotten to
it.

Kris Jurka

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Richard Scranton 2003-11-18 05:38:16 Build problems for PostgreSQL v7.4 on FreeBSD v4.1
Previous Message ritchie turner 2003-11-17 22:30:06 COPY support