Re: [PATCH] COPY .. COMPRESSED

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: [PATCH] COPY .. COMPRESSED
Дата
Msg-id 20130115222437.GY16126@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: [PATCH] COPY .. COMPRESSED  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
* Bruce Momjian (bruce@momjian.us) wrote:
> COPY with a file name is super-user-only.  I am unclear how you would
> use STDIN/STDOUT in any meaningful way with binary data produced by
> compression.  I guess you could with libpq.

The patch that I posted provided this:

psql -h myhost -c "COPY mytable FROM STDIN COMPRESSED;" < myfile.gz

With the compressed file being transferred unmolested to the server side
where it was decompressed and processed by the server.
Thanks,
    Stephen

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [PATCH] COPY .. COMPRESSED
Следующее
От: Kohei KaiGai
Дата:
Сообщение: Re: Review of Row Level Security