Re: COPY support in JDBC driver? - Mailing list pgsql-jdbc

From Craig Ringer
Subject Re: COPY support in JDBC driver?
Date
Msg-id 48DB3843.30909@postnewspapers.com.au
Whole thread Raw
In response to Re: COPY support in JDBC driver?  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
Responses Re: COPY support in JDBC driver?  ("Ido M. Tamir" <tamir@imp.ac.at>)
List pgsql-jdbc
Albe Laurenz wrote:

> For me the nice thing about COPY support in JDBC would be that you have
> an easy way to load CSV files into the database or dump them out from a
> database, which is a requirement I encounter frequently.

It also permits you to do bulk load/dump operations within the context
of an ongoing JDBC transaction. Somebody on this list (or -general; I
don't remember) was trying to do that only a few days ago.

In addition to fast import/export of user data, I can also see uses for
it when trying to avoid having database setup scripts outside the
primary application. For apps you're distributing to end users, having
the Java app able to create and populate the initial database quickly
and efficiently rather than having  to shell out to psql, get the user
to run scripts, etc is highly appealing.

Text-based COPY in the JDBC driver would be a significant plus to me. I
can't say I personally care about binary COPY especially with a language
that tries to be platform independent.

--
Craig Ringer

pgsql-jdbc by date:

Previous
From: "Albe Laurenz"
Date:
Subject: Re: COPY support in JDBC driver?
Next
From: "Michael Nacos"
Date:
Subject: Re: Performance comparison to psql.