Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2e6d24a

Browse files
committed
Clarify that "psql -c" ignores psqlrc files.
Tim Landscheidt
1 parent 5ce63f4 commit 2e6d24a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

doc/src/sgml/ref/psql-ref.sgml

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.244 2010/04/03 07:23:02 petere Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.245 2010/07/10 00:50:24 rhaas Exp $
33
PostgreSQL documentation
44
-->
55

@@ -79,7 +79,9 @@ PostgreSQL documentation
7979
<para>
8080
Specifies that <application>psql</application> is to execute one
8181
command string, <replaceable class="parameter">command</replaceable>,
82-
and then exit. This is useful in shell scripts.
82+
and then exit. This is useful in shell scripts. Start-up files
83+
(<filename>psqlrc</filename> and <filename>~/.psqlrc</filename>) are
84+
ignored with this option.
8385
</para>
8486
<para>
8587
<replaceable class="parameter">command</replaceable> must be either
@@ -3090,10 +3092,12 @@ $endif
30903092
<itemizedlist>
30913093
<listitem>
30923094
<para>
3093-
Before starting up, <application>psql</application> attempts to
3095+
Unless it is passed an <option>-X</option>
3096+
or <option>-c</option> option,
3097+
<application>psql</application> attempts to
30943098
read and execute commands from the system-wide
30953099
<filename>psqlrc</filename> file and the user's
3096-
<filename>~/.psqlrc</filename> file.
3100+
<filename>~/.psqlrc</filename> file before starting up.
30973101
(On Windows, the user's startup file is named
30983102
<filename>%APPDATA%\postgresql\psqlrc.conf</filename>.)
30993103
See <filename><replaceable>PREFIX</>/share/psqlrc.sample</>

0 commit comments

Comments
 (0)