mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
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.
This commit is contained in:
@ -3340,6 +3340,26 @@ PSQL_EDITOR_LINENUMBER_ARG='--line '
|
||||
</listitem>
|
||||
</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>
|
||||
|
||||
@ -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>
|
||||
|
Reference in New Issue
Block a user