Re: copy from pipe

Поиск
Список
Период
Сортировка
От Skylar Thompson
Тема Re: copy from pipe
Дата
Msg-id 20150217195500.GA7362@utumno.gs.washington.edu
обсуждение исходный текст
Ответ на copy from pipe  (Hans Ginzel <hans@matfyz.cz>)
Список 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 по дате отправления:

Предыдущее
От: Hans Ginzel
Дата:
Сообщение: copy from pipe
Следующее
От: "Peter Dabrowski"
Дата:
Сообщение: Re: Random Number SKU Generator