1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Add global psql config file, psql.rc.sample.

This commit is contained in:
Bruce Momjian
2004-04-22 01:53:37 +00:00
parent 4906841901
commit be6bbcef56
4 changed files with 55 additions and 30 deletions

View File

@ -1,5 +1,5 @@
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.112 2004/04/21 00:34:18 momjian Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.113 2004/04/22 01:53:17 momjian Exp $
PostgreSQL documentation
-->
@ -440,7 +440,8 @@ PostgreSQL documentation
<term><option>--no-psqlrc</></term>
<listitem>
<para>
Do not read the start-up file <filename>~/.psqlrc</filename>.
Do not read the start-up file <filename>/psql.rc</filename> or
<filename>~/.psqlrc</filename>.
</para>
</listitem>
</varlistentry>
@ -1859,8 +1860,9 @@ bar
<para>
The autocommit-on mode is <productname>PostgreSQL</>'s traditional
behavior, but autocommit-off is closer to the SQL spec. If you
prefer autocommit-off, you may wish to set it in
your <filename>.psqlrc</filename> file.
prefer autocommit-off, you may wish to set it in the system-wide
<filename>psql.rc</filename> or your
<filename>.psqlrc</filename> file.
</para>
</note>
</listitem>
@ -2488,9 +2490,12 @@ $endif
<listitem>
<para>
Before starting up, <application>psql</application> attempts to
read and execute commands from the file
<filename>$HOME/.psqlrc</filename>. It could be used to set up
the client or the server to taste (using the <command>\set
read and execute commands from the the system-wide
<filename>psql.rc</filename> file and the
<filename>$HOME/.psqlrc</filename> file in the user's home
directory. See <filename><replaceable>PREFIX</>/share/psql.rc.sample</>
for information on setting up the system-wide file. It could be used
to set up the client or the server to taste (using the <command>\set
</command> and <command>SET</command> commands).
</para>
</listitem>