From 34c978442c55dd13a3a8c6b90fd4380dad02f3da Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Sat, 3 Mar 2012 16:39:26 -0500 Subject: 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. --- doc/src/sgml/ref/psql-ref.sgml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'doc/src') 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 @@ -3340,6 +3340,26 @@ PSQL_EDITOR_LINENUMBER_ARG='--line ' + + PSQL_HISTORY + + + + Alternative location for the command history file. Tilde ("~") expansion is performed. + + + + + + PSQLRC + + + + Alternative location of the user's .psqlrc file. Tilde ("~") expansion is performed. + + + + SHELL @@ -3390,6 +3410,11 @@ PSQL_EDITOR_LINENUMBER_ARG='--line ' to set up the client or the server to taste (using the \set and SET commands). + + The location of the user's ~/.psqlrc file can + also be set explicitly via the PSQLRC environment + setting. + @@ -3411,6 +3436,11 @@ PSQL_EDITOR_LINENUMBER_ARG='--line ' ~/.psql_history, or %APPDATA%\postgresql\psql_history on Windows. + + The location of the history file can + also be set explicitly via the PSQL_HISTORY environment + setting. + -- cgit v1.2.3