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
- Before starting up,
psql attempts to
+ Unless it is passed an
+ or option,
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>