Re: Piping CSV data to psql when executing COPY .. FROM STDIN (Solved) - Mailing list pgsql-general

From Sam Mason
Subject Re: Piping CSV data to psql when executing COPY .. FROM STDIN (Solved)
Date
Msg-id 20081029144826.GZ2459@frubble.xen.chris-lamb.co.uk
Whole thread Raw
In response to Re: Piping CSV data to psql when executing COPY .. FROM STDIN (Solved)  (Allan Kamau <allank@sanbi.ac.za>)
List pgsql-general
On Wed, Oct 29, 2008 at 12:11:43PM +0200, Allan Kamau wrote:
> I am however unable to do the same successfully (the Java code simply
> hangs, probably as a result of the second psql not getting the input to
> it) from Java code using objects of ProcessBuilder and Process.

Why don't you use the JDBC driver?  You wouldn't have to worry about
file descriptors blocking at all that way.


  Sam

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: [Help] Config Failure on Mac OSX: psqlodbc-08.03.0300
Next
From: Raymond O'Donnell
Date:
Subject: Re: Replication with slony-I