Re: copy to program with format binary

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: copy to program with format binary
Дата
Msg-id 81ba38c29879972e9ccb3025162ef1dfa8582b19.camel@cybertec.at
обсуждение исходный текст
Ответ на copy to program with format binary  (Scott Ribe <scott_ribe@elevated-dev.com>)
Ответы Re: copy to program with format binary  (Scott Ribe <scott_ribe@elevated-dev.com>)
Список pgsql-admin
On Mon, 2021-09-27 at 08:24 -0600, Scott Ribe wrote:
> Are the "to program" and binary format not compatible?
> 
> copy msgs (msg) to program 'bzip2 > /...' with format binary
> 
> gives me a syntax error at "format"
> 
> Trying older-style syntax without "with" does the same thing.

The correct syntax is:

COPY msgs (msg) TO PROGRAM 'bzip2 > /...' WITH (FORMAT 'binary');

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




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

Предыдущее
От: Scott Ribe
Дата:
Сообщение: copy to program with format binary
Следующее
От: Scott Ribe
Дата:
Сообщение: Re: copy to program with format binary