Re: pg_restore to log file
От | akp geek |
---|---|
Тема | Re: pg_restore to log file |
Дата | |
Msg-id | AANLkTin5qbxYBR7pVmdNzNeQTBtpgODjVCACf8MCOqbm@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: pg_restore to log file (Scott Mead <scott.lists@enterprisedb.com>) |
Список | pgsql-general |
Thanks a lot
pg_restore -all options >output.txt 2>&1 worked
Regards
On Tue, May 18, 2010 at 12:15 PM, Scott Mead <scott.lists@enterprisedb.com> wrote:
On Tue, May 18, 2010 at 12:11 PM, akp geek <akpgeek@gmail.com> wrote:pg_restore -h 10.xx.xx.xxx -d dbName -n schemaName -v -U postgres testDB_20100414.txt -f outputifileI got the following error "pg_restore: options -d/--dbname and -f/--file cannot be used together"I think you would either capture stdout or stderr (I'm honestly not sure which is required)pg_restore -all options >output.txt 2>&1--ScottRegardsOn Tue, May 18, 2010 at 12:07 PM, Thom Brown <thombrown@gmail.com> wrote:I think you can use "-f outputfile".On 18 May 2010 17:03, akp geek <akpgeek@gmail.com> wrote:
> Hi All -
> Is there a way to direct the message generated during
> pg_restore to a log file?
> Regards
>
Regards
Thom
В списке pgsql-general по дате отправления: