diff options
author | Robert Haas <rhaas@postgresql.org> | 2010-07-10 00:50:24 +0000 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2010-07-10 00:50:24 +0000 |
commit | 2e6d24a6216742692d9a85a16ca0b9513470218b (patch) | |
tree | 247e30e7868b47ae102af913262b9effa52152c8 | |
parent | 5ce63f480b9b9e77d4f5ab70cf59e8e31d40a8e0 (diff) | |
download | postgresql-2e6d24a6216742692d9a85a16ca0b9513470218b.tar.gz postgresql-2e6d24a6216742692d9a85a16ca0b9513470218b.zip |
Clarify that "psql -c" ignores psqlrc files.
Tim Landscheidt
-rw-r--r-- | doc/src/sgml/ref/psql-ref.sgml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index 782d91411e0..48391117a81 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.244 2010/04/03 07:23:02 petere Exp $ +$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.245 2010/07/10 00:50:24 rhaas Exp $ PostgreSQL documentation --> @@ -79,7 +79,9 @@ PostgreSQL documentation <para> Specifies that <application>psql</application> is to execute one command string, <replaceable class="parameter">command</replaceable>, - and then exit. This is useful in shell scripts. + and then exit. This is useful in shell scripts. Start-up files + (<filename>psqlrc</filename> and <filename>~/.psqlrc</filename>) are + ignored with this option. </para> <para> <replaceable class="parameter">command</replaceable> must be either @@ -3090,10 +3092,12 @@ $endif <itemizedlist> <listitem> <para> - Before starting up, <application>psql</application> attempts to + Unless it is passed an <option>-X</option> + or <option>-c</option> option, + <application>psql</application> attempts to read and execute commands from the system-wide <filename>psqlrc</filename> file and the user's - <filename>~/.psqlrc</filename> file. + <filename>~/.psqlrc</filename> file before starting up. (On Windows, the user's startup file is named <filename>%APPDATA%\postgresql\psqlrc.conf</filename>.) See <filename><replaceable>PREFIX</>/share/psqlrc.sample</> |