• Bruce Momjian's avatar
    the following patch makes the filename used to store the readline · ea88824a
    Bruce Momjian authored
    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
    ea88824a
input.c 4.46 KB