Thread: psql defaults file?

psql defaults file?

From
"Jonathan Ellis"
Date:
I couldn't find anything in the man page about this -- does psql check for
~/.psql or anything so I don't have to manually --pset pager=off every time
I run it?  If there is such a file, what is the format for specifying
options?

-Jonathan


Re: psql defaults file?

From
Ashley Clark
Date:
* Jonathan Ellis in "[GENERAL] psql defaults file?" dated 2000/11/01
* 10:13 wrote:

> I couldn't find anything in the man page about this -- does psql
> check for ~/.psql or anything so I don't have to manually
> --pset pager=off every time I run it?  If there is such a file, what
> is the format for specifying options?

Check the psql(1) man page again. psql reads ~/.psqlrc, and the format
is the same as if you were typing directly in psql.

--
really shack

Attachment