Re: Piping CSV data to psql when executing COPY .. FROM STDIN (Solved)

From: Sam Mason <sam(at)samason(dot)me(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Piping CSV data to psql when executing COPY .. FROM STDIN (Solved)
Date: 2008-10-29 14:48:26
Message-ID: 20081029144826.GZ2459@frubble.xen.chris-lamb.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tomasz Myrta 2008-10-29 15:08:08 Re: How can I tell, in a trigger, if a value in a string is an integer.
Previous Message Tom Lane 2008-10-29 14:38:52 Re: [Help] Config Failure on Mac OSX: psqlodbc-08.03.0300