OSDN Git Service

the following patch makes the filename used to store the readline
authorBruce Momjian <bruce@momjian.us>
Fri, 10 Jun 2005 15:34:26 +0000 (15:34 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 10 Jun 2005 15:34:26 +0000 (15:34 +0000)
commitea88824a3e2d2a610ceff43740391b2269939f77
tree23ae0fa564d91616b87b68dd706d55fadcadc2ff
parent92eadf6c4a5cc762e3829b360d4ac4d51cae03fb
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
doc/src/sgml/ref/psql-ref.sgml
src/bin/psql/input.c