aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2012-03-03 16:39:26 -0500
committerAndrew Dunstan <andrew@dunslane.net>2012-03-03 16:39:26 -0500
commit34c978442c55dd13a3a8c6b90fd4380dad02f3da (patch)
tree898bacdf3a1253bb4e38158d0d379c82ea146a8d /doc/src
parentb59ca98209d45f5689fe9de22a7429d4cf09d40c (diff)
downloadpostgresql-34c978442c55dd13a3a8c6b90fd4380dad02f3da.tar.gz
postgresql-34c978442c55dd13a3a8c6b90fd4380dad02f3da.zip
Provide environment overrides for psql file locations.
PSQL_HISTORY provides an alternative for the command history file, and PSQLRC provides an alternative location for the .psqlrc file.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/ref/psql-ref.sgml30
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index 55aa5f2ac1d..fdeaea60404 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -3341,6 +3341,26 @@ PSQL_EDITOR_LINENUMBER_ARG='--line '
</varlistentry>
<varlistentry>
+ <term><envar>PSQL_HISTORY</envar></term>
+
+ <listitem>
+ <para>
+ Alternative location for the command history file. Tilde ("~") expansion is performed.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><envar>PSQLRC</envar></term>
+
+ <listitem>
+ <para>
+ Alternative location of the user's .psqlrc file. Tilde ("~") expansion is performed.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><envar>SHELL</envar></term>
<listitem>
@@ -3390,6 +3410,11 @@ PSQL_EDITOR_LINENUMBER_ARG='--line '
to set up the client or the server to taste (using the <command>\set
</command> and <command>SET</command> commands).
</para>
+ <para>
+ The location of the user's <filename>~/.psqlrc</filename> file can
+ also be set explicitly via the <envar>PSQLRC</envar> environment
+ setting.
+ </para>
</listitem>
<listitem>
@@ -3411,6 +3436,11 @@ PSQL_EDITOR_LINENUMBER_ARG='--line '
<filename>~/.psql_history</filename>, or
<filename>%APPDATA%\postgresql\psql_history</filename> on Windows.
</para>
+ <para>
+ The location of the history file can
+ also be set explicitly via the <envar>PSQL_HISTORY</envar> environment
+ setting.
+ </para>
</listitem>
</itemizedlist>
</refsect1>