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 26031.1234991766@sss.pgh.pa.us
Whole thread Raw
In response to Re: Appending \o output instead of overwriting the output file  (John R Pierce <pierce@hogranch.com>)
List pgsql-general
John R Pierce <pierce@hogranch.com> writes:
> Tom Lane wrote:
>> "Brent Wood" <b.wood@niwa.co.nz> writes:
>>> Perhaps \o+ as a future fix for this?

>> I'd prefer "\o >>file" but maybe I'm too steeped in unix-isms.

> \o+ is reasonably consistent with the other \ command usages...

Not really; none of the other commands interpret + as meaning "append to
an existing file".  They tend to take it as meaning "do something *in
addition to* what you normally do", not to do something that is
significantly different from the base command.

            regards, tom lane

pgsql-general by date:

Previous
From: Joey Morris
Date:
Subject: Re: connecting using libpq breaks printf
Next
From: John R Pierce
Date:
Subject: Re: When adding millions of rows at once, getting out of disk space errors