Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2e6d24a

Browse files
committed
Clarify that "psql -c" ignores psqlrc files.
Tim Landscheidt
1 parent5ce63f4 commit2e6d24a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

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

Lines changed: 8 additions & 4 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp