pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Murphy <murphy@genome.chop.edu>
To: pgsql-jdbc@postgresql.org
Cc: nwakefield@kineticnetworks.com
Subject: Re: psql COPY with JDBC
Date: Mon, 02 Apr 2007 09:57:19 -0400
Message-ID: <46110BBF.10806@genome.chop.edu> (raw)

> I have a patched version of the JDBC driver which appears to work. 
> However I built a wrapper round it to make it even easier to use, to 
> make it more like pure a JDBC prepared statement - I'll gladly send 
> you this.

Does anyone have a patched version of the 8.2 JDBC3 driver that can do COPY?

Also: I haven't seen evidence of a JDBC prepared statement approach for 
8.2's multiple-row INSERTs (using multiple VALUES arguments).  Does such 
a beast exist, or will it?

Also: what exactly does the PostgreSQL driver do with INSERTs that are 
batched with addBatch?  I must confess I haven't tried this yet.

I would really love it if there were an officially supported fast way to 
do bulk inserts with the PostgreSQL JDBC driver.  JDBC hackers, you will 
be rewarded by my great joy and enthusiastic praise if you work on this ;-)

Our application uses Lucene in combination with PostgreSQL, and we often 
need to take a few tens or hundreds of thousands of record IDs from the 
Lucene side and do something with them in PostgreSQL.  I'd love to use 
tsearch2, but our text database is not transactional, so Lucene totally 
kicks tsearch2's butt, performance-wise (even with the new GIN index).

Thanks,
Kevin Murphy





view thread (14+ messages)  latest in thread

Message-ID: <46110BBF.10806@genome.chop.edu>
Permalink:  ../46110BBF.10806@genome.chop.edu/
Also on:    postgresql.org/message-id/46110BBF.10806@genome.chop.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: murphy@genome.chop.edu, nwakefield@kineticnetworks.com
  Subject: Re: psql COPY with JDBC
  In-Reply-To: <46110BBF.10806@genome.chop.edu>
  References: <46110BBF.10806@genome.chop.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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