Clarify that "psql -c" ignores psqlrc files.
authorRobert Haas
Sat, 10 Jul 2010 00:50:24 +0000 (00:50 +0000)
committerRobert Haas
Sat, 10 Jul 2010 00:50:24 +0000 (00:50 +0000)
Tim Landscheidt

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

index 782d91411e002467979bfb33ccfa0619ab9cf9f0..48391117a81470497d3ebfe52a7f101d04c933a6 100644 (file)
@@ -1,5 +1,5 @@
 
 
@@ -79,7 +79,9 @@ PostgreSQL documentation
       
       Specifies that psql is to execute one
       command string, command,
-      and then exit. This is useful in shell scripts.
+      and then exit. This is useful in shell scripts. Start-up files
+      (psqlrc and ~/.psqlrc) are
+      ignored with this option.
       
       
       command must be either
@@ -3090,10 +3092,12 @@ $endif
   
    
     
-     Before starting up, psql attempts to
+     Unless it is passed an 
+     or  option,
+     psql attempts to
      read and execute commands from the system-wide
      psqlrc file and the user's
-     ~/.psqlrc file.
+     ~/.psqlrc file before starting up.
      (On Windows, the user's startup file is named
      %APPDATA%\postgresql\psqlrc.conf.)
      See PREFIX/share/psqlrc.sample