Re: [PERFORM] Using a COPY...FROM through JDBC?

From: Steve Wampler <swampler(at)noao(dot)edu>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: Postgres-JDBC <pgsql-jdbc(at)postgresql(dot)org>, Postgres-performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: [PERFORM] Using a COPY...FROM through JDBC?
Date: 2004-06-07 17:40:56
Message-ID: 1086630056.25790.17.camel@weaver.tuc.noao.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc pgsql-performance

On Mon, 2004-06-07 at 02:26, Kris Jurka wrote:
> On Sat, 5 Jun 2004, Steve Wampler wrote:
>
> >
> > [I want to use copy from JDBC]
> >
>
> I made a patch to the driver to support COPY as a PG extension.
...
> http://archives.postgresql.org/pgsql-jdbc/2003-12/msg00186.php

Thanks Kris - that patch worked beautifully and bumped the
insert rate from ~1000 entries/second to ~9000 e/s in my
test code.

Here's hoping it makes it into 7.5.

I do have a little concern about what's happening in the
back end during the copy - I suspect the entire table is
locked, which may impact the performance when multiple
clients are saving entries into the table. Anyone know
if that's how COPY works? (For that matter, would that
also be true of a transaction consisting of a set of
inserts?)

Thanks again!
--
Steve Wampler -- swampler(at)noao(dot)edu
The gods that smiled on your birth are now laughing out loud.

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Steve Wampler 2004-06-07 17:59:25 Re: [PERFORM] Using a COPY...FROM through JDBC?
Previous Message mjgacto 2004-06-07 11:27:25 Access via odbc a postgrest

Browse pgsql-performance by date

  From Date Subject
Next Message Steve Wampler 2004-06-07 17:59:25 Re: [PERFORM] Using a COPY...FROM through JDBC?
Previous Message Merlin Moncure 2004-06-07 17:30:29 is it possible to for the planner to optimize this form?