pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
COPY support
5+ messages / 4 participants
[nested] [flat]

* COPY support
@ 2003-11-17 22:30 ritchie turner <ritchie@ipowerhouse.com>
  2003-11-18 04:25 ` Re: COPY support Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 5+ messages in thread

From: ritchie turner @ 2003-11-17 22:30 UTC (permalink / raw)
  To: pgsql-jdbc


Hi all

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 ....

Here's the pg log output.

LOG:  query: COPY bingo_cards (account_id, game_id, win_ball, card, 
current_call, state) FROM stdin with delimiter '|';
34|50558|75|3,7,8,4,12,23,18,24,22,21,38,45,42,39,43,55,54,53,51,46,70,66,71,75,65|0|0
34|50558|68|4,8,2,13,11,26,23,30,19,18,39,35,31,36,43,55,60,48,59,58,72,68,65,71,66|0|0
34|50558|72|15,11,2,4,5,26,18,20,25,27,43,36,45,38,31,54,57,58,55,50,66,73,71,72,69|0|0
\.
ERROR:  syntax error at or near "34" at character 108


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.

Thanks for any help.

Ritchie




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: COPY support
  2003-11-17 22:30 COPY support ritchie turner <ritchie@ipowerhouse.com>
@ 2003-11-18 04:25 ` Kris Jurka <books@ejurka.com>
  2003-11-19 10:13   ` Re: COPY support ritchie turner <ritchie@ipowerhouse.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Kris Jurka @ 2003-11-18 04:25 UTC (permalink / raw)
  To: ritchie turner <ritchie@ipowerhouse.com>; +Cc: 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




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: COPY support
  2003-11-17 22:30 COPY support ritchie turner <ritchie@ipowerhouse.com>
  2003-11-18 04:25 ` Re: COPY support Kris Jurka <books@ejurka.com>
@ 2003-11-19 10:13   ` ritchie turner <ritchie@ipowerhouse.com>
  0 siblings, 0 replies; 5+ messages in thread

From: ritchie turner @ 2003-11-19 10:13 UTC (permalink / raw)
  To: Kris Jurka <books@ejurka.com>; +Cc: pgsql-jdbc


Thanks for the info Kris, I suspected that may be the case.

Cheers

Ritchie

On Monday 17 November 2003 23:25, Kris Jurka wrote:
> 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
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* COPY support
@ 2009-02-20 15:54 Mark Addleman <mark_addleman@bigfoot.com>
  2009-02-20 18:10 ` Re: COPY support Maciek Sakrejda <msakrejda@truviso.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Mark Addleman @ 2009-02-20 15:54 UTC (permalink / raw)
  To: pgsql-jdbc

Is there any work to incorporate the outdated COPY support patch in
the latest release of the JDBC driver?



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: COPY support
  2009-02-20 15:54 COPY support Mark Addleman <mark_addleman@bigfoot.com>
@ 2009-02-20 18:10 ` Maciek Sakrejda <msakrejda@truviso.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Maciek Sakrejda @ 2009-02-20 18:10 UTC (permalink / raw)
  To: Mark Addleman <mark_addleman@bigfoot.com>; +Cc: pgsql-jdbc

Sorry--meant to send this to the list and sent it to just Mark instead
(the list I'm most active on sets a Reply-To):


I've had this on my plate for ages, but I haven't had any time for this
due to a number of process changes here at Truviso while pushing out our
next release. We're wrapping that up next week, and after that I will
take a serious look at synching our COPY code (we have a couple of
encoding fixes that are not on Kalle's page) with jdbc HEAD.

-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-----Original Message-----
From: Mark Addleman <mark_addleman@bigfoot.com>
To: pgsql-jdbc@postgresql.org
Subject: [JDBC] COPY support
Date: Fri, 20 Feb 2009 07:54:27 -0800 (PST)

Is there any work to incorporate the outdated COPY support patch in
the latest release of the JDBC driver?






^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2009-02-20 18:10 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-11-17 22:30 COPY support ritchie turner <ritchie@ipowerhouse.com>
2003-11-18 04:25 ` Kris Jurka <books@ejurka.com>
2003-11-19 10:13   ` ritchie turner <ritchie@ipowerhouse.com>
2009-02-20 15:54 COPY support Mark Addleman <mark_addleman@bigfoot.com>
2009-02-20 18:10 ` Maciek Sakrejda <msakrejda@truviso.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox