pgsql: Provide environment overrides for psql file locations.

Started by Andrew Dunstanover 14 years ago2 messagescomitters
Jump to latest
#1Andrew Dunstan
andrew@dunslane.net

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/34c978442c55dd13a3a8c6b90fd4380dad02f3da

Modified Files
--------------
doc/src/sgml/ref/psql-ref.sgml | 30 ++++++++++++++++++++++++++++++
src/bin/psql/input.c | 9 +++++++++
src/bin/psql/startup.c | 10 +++++++++-
3 files changed, 48 insertions(+), 1 deletions(-)

#2Andrew Dunstan
andrew@dunslane.net
In reply to: Andrew Dunstan (#1)
Re: pgsql: Provide environment overrides for psql file locations.

On 03/03/2012 04:43 PM, Andrew Dunstan wrote:

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.

Forgot to mention this was reviewed by David Wheeler. Apologies.

cheers

andrew