From: Markus Schaber <schabi@logix-tt.com>
To: Christopher Condit <condit@sdsc.edu>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: psql COPY with JDBC
Date: Tue, 04 Apr 2006 18:21:06 +0200
Message-ID: <44329CF2.6010204@logix-tt.com> (raw)
In-Reply-To: <845AADAC1106E44996327D62097E4C6B8AA6BC@et.ad.sdsc.edu>
References: <845AADAC1106E44996327D62097E4C6B8AA6BC@et.ad.sdsc.edu>
Hi, Christopher,
Christopher Condit wrote:
> I’ve been trying over at the general postgres list with no luck, so I
> thought I’d try here. I need to bulk load results from a Java
> application on one machine to a postgres db on a remote server. I know
> I can use psql interactively to accomplish this, but I’d like to be able
> to do it programmatically:
Some ideas for "ugly hacks":
- Use a java.lang.ProcessBuilder and pipe into psql
- Use some secure channel (e. G. libjsch or https upload) to copy the
date into a file on the server, and then issue "COPY table FROM file".
HTH,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org
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: schabi@logix-tt.com, condit@sdsc.edu
Subject: Re: psql COPY with JDBC
In-Reply-To: <44329CF2.6010204@logix-tt.com>
References: <845AADAC1106E44996327D62097E4C6B8AA6BC@et.ad.sdsc.edu> <44329CF2.6010204@logix-tt.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