Re: Appending \o output instead of overwriting the output file

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: John R Pierce <pierce(at)hogranch(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Appending \o output instead of overwriting the output file
Date: 2009-02-18 21:16:06
Message-ID: 26031.1234991766@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

John R Pierce <pierce(at)hogranch(dot)com> writes:
> Tom Lane wrote:
>> "Brent Wood" <b(dot)wood(at)niwa(dot)co(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2009-02-18 21:21:01 Re: When adding millions of rows at once, getting out of disk space errors
Previous Message Mike Christensen 2009-02-18 21:14:01 Re: When adding millions of rows at once, getting out of disk space errors