Re: Appending \o output instead of overwriting the output file - Mailing list pgsql-general

From Tom Lane
Subject Re: Appending \o output instead of overwriting the output file
Date
Msg-id 760.1234938633@sss.pgh.pa.us
Whole thread Raw
In response to Appending \o output instead of overwriting the output file  ("Brent Wood" <b.wood@niwa.co.nz>)
List pgsql-general
"Brent Wood" <b.wood@niwa.co.nz> writes:
> Using \o to redirect output to a file from the psql command line, is there any way to have the output appended to the
outputfile, rather than overwriting it? 

This is pretty grotty, but it works:

\o | cat >>target

Maybe we should provide another way in future...

            regards, tom lane

pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: hi all
Next
From: John R Pierce
Date:
Subject: Re: Strange Grant behavior in postgres 8.3