pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Maciek Sakrejda <msakrejda@truviso.com>
To: Mario Splivalo <mario.splivalo@megafon.hr>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Inserting 'large' amounts of data
Date: Wed, 26 Aug 2009 10:34:32 -0700
Message-ID: <895e58dd0908261034y3887469agd8fdc62918f6be50@mail.gmail.com> (raw)
In-Reply-To: <4A9562BC.8030804@megafon.hr>
References: <4A9562BC.8030804@megafon.hr>

Right. As of the 8.4 release, you have a jdbc API to the postgresql
COPY functionality. Cast your Connection to a PGConnection and call
.getCopyAPI(). You can then use the CopyManager[1] to copy data in
from your tomcat servlet.

[1] http://jdbc.postgresql.org/documentation/publicapi/org/postgresql/copy/CopyManager.html

-- 
Maciek Sakrejda | Software Engineer | Truviso
(650) 242-3500 Main
(650) 242-3501 F
msakrejda@truviso.com
www.truviso.com



view thread (10+ messages)  latest in thread

Message-ID: <895e58dd0908261034y3887469agd8fdc62918f6be50@mail.gmail.com>
Permalink:  ../895e58dd0908261034y3887469agd8fdc62918f6be50@mail.gmail.com/
Also on:    postgresql.org/message-id/895e58dd0908261034y3887469agd8fdc62918f6be50@mail.gmail.com

 · 

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: msakrejda@truviso.com, mario.splivalo@megafon.hr
  Subject: Re: Inserting 'large' amounts of data
  In-Reply-To: <895e58dd0908261034y3887469agd8fdc62918f6be50@mail.gmail.com>
  References: <4A9562BC.8030804@megafon.hr> <895e58dd0908261034y3887469agd8fdc62918f6be50@mail.gmail.com>

* 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