the following patch makes the filename used to store the readline

Bruce Momjian <bruce@momjian.us>

Commit: ea88824a3e2d2a610ceff43740391b2269939f77
Author: Bruce Momjian <bruce@momjian.us>
Date: 2005-06-10T15:34:26Z
Releases: 8.1.0
the following patch makes the filename used to store the readline
history customizable through a variable named HISTFILE, analogous to
psql's already implemented HISTCONTROL and HISTSIZE variables, and
bash's HISTFILE-Variable.

The motivation was to be able to get psql to maintain separate
histories for separate databases.  This is now easily achievable
through a line like the following in ~/.psqlrc:

\set HISTFILE ~/.psql_history-:DBNAME

Andreas Seltenreich

Files

PathChange+/−
doc/src/sgml/ref/psql-ref.sgml modified +23 −1
src/bin/psql/input.c modified +27 −25