| From: | Skylar Thompson <skylar2(at)u(dot)washington(dot)edu> |
|---|---|
| To: | Hans Ginzel <hans(at)matfyz(dot)cz> |
| Cc: | pgsql-novice(at)postgresql(dot)org |
| Subject: | Re: copy from pipe |
| Date: | 2015-02-17 19:55:01 |
| Message-ID: | 20150217195500.GA7362@utumno.gs.washington.edu |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(at)u(dot)washington(dot)edu)
-- Genome Sciences Department, System Administrator
-- Foege Building S046, (206)-685-7354
-- University of Washington School of Medicine
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Dabrowski | 2015-02-18 15:18:17 | Re: Random Number SKU Generator |
| Previous Message | Hans Ginzel | 2015-02-17 19:43:11 | copy from pipe |