Thread: can I send execution log into a file.

can I send execution log into a file.

From
"Dinesh Pandey"
Date:

I am using Postgres. How can I send execution log into a file.

 

Testdb=>\i MyCreateScript.sql

 

Thanks

 

Re: can I send execution log into a file.

From
Mage
Date:
Dinesh Pandey wrote:

> I am using Postgres. How can I send execution log into a file.
>
>
>
psql -o filename

I also recommend:

psql -H -e -o filename

       Mage