Re: copy from pipe - Mailing list pgsql-novice

From Skylar Thompson
Subject Re: copy from pipe
Date
Msg-id 20150217195500.GA7362@utumno.gs.washington.edu
Whole thread Raw
In response to copy from pipe  (Hans Ginzel <hans@matfyz.cz>)
List pgsql-novice
I think you'll want to look at the PROGRAM option for COPY:

http://www.postgresql.org/docs/9.3/static/sql-copy.html

Alternatively, you could probably use a named pipe instead of a regular
file and run the command separately from PostgreSQL.

On Tue, Feb 17, 2015 at 08:43:11PM +0100, Hans Ginzel wrote:
> Hello,
>
> please, is it possible to copy from pipe? E.g.
>
> COPY Table_Name FROM 'xzcat file.xz|';
>
> Thank you
> HG

--
-- Skylar Thompson (skylar2@u.washington.edu)
-- Genome Sciences Department, System Administrator
-- Foege Building S046, (206)-685-7354
-- University of Washington School of Medicine


pgsql-novice by date:

Previous
From: Hans Ginzel
Date:
Subject: copy from pipe
Next
From: "Peter Dabrowski"
Date:
Subject: Re: Random Number SKU Generator