psql: customizable readline history filename

From: Andreas Seltenreich <seltenreich(at)gmx(dot)de>
To: pgsql-patches(at)postgresql(dot)org
Subject: psql: customizable readline history filename
Date: 2004-10-26 06:31:37
Message-ID: 87k6tegfcm.fsf@gate450.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Hi,

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

regards,
Andreas

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Dave Page 2004-10-26 07:38:43 Re: pg_autovacuum vacuum cost variables patch
Previous Message Curt Sampson 2004-10-26 06:04:58 Re: [PATCHES] ARC Memory Usage analysis