Re: copy to program with format binary

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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






[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux