Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id B04CE9FBA22 for ; Mon, 2 Apr 2007 11:23:53 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 36286-01 for ; Mon, 2 Apr 2007 11:23:33 -0300 (ADT) X-Greylist: delayed 00:20:00.285113 by SQLgrey-1.7.4 Received: from genomemail.chop.edu (genomemail.chop.edu [159.14.214.193]) by postgresql.org (Postfix) with ESMTP id 0E4609FC3BA for ; Mon, 2 Apr 2007 11:17:23 -0300 (ADT) Received: from [127.0.0.1] (dsl092-234-063.phl1.dsl.speakeasy.net [66.92.234.63]) BY genomemail.chop.edu ([159.14.214.193]) WITH ESMTP (4D WebSTAR V Mail (5.3.4)); Mon, 02 Apr 2007 10:00:41 -0500 Message-ID: <46110BBF.10806@genome.chop.edu> Date: Mon, 02 Apr 2007 09:57:19 -0400 From: Kevin Murphy User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org CC: nwakefield@kineticnetworks.com Subject: Re: psql COPY with JDBC Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/2 X-Sequence-Number: 16851 > 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