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

Поиск
Список
Период
Сортировка
От Brent Wood
Тема Re: Appending \o output instead of overwriting the output file
Дата
Msg-id 499D22870200007B00019479@gwia1.ham.niwa.co.nz
обсуждение исходный текст
Ответы Re: Appending \o output instead of overwriting the output file  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Thanks Tom,

That will do trick.

Perhaps \o+ as a future fix for this?


Brent

Brent Wood
DBA/GIS consultant
NIWA, Wellington
New Zealand
>>> Tom Lane <tgl@sss.pgh.pa.us> 02/18/09 7:46 PM >>>
"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

NIWA is the trading name of the National Institute of Water & Atmospheric Research Ltd.

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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: COPY questions
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: COPY questions