Re: BUG #14037: Move history file - Mailing list pgsql-bugs

From David G. Johnston
Subject Re: BUG #14037: Move history file
Date
Msg-id CAKFQuwaV41a5c6z6_ws=JS_QqceU6uJ44VEYPHsY6S5Hni=Avg@mail.gmail.com
Whole thread Raw
In response to BUG #14037: Move history file  (vendforce@gmail.com)
Responses Re: BUG #14037: Move history file  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-bugs
On Sun, Mar 20, 2016 at 8:55 AM, <vendforce@gmail.com> wrote:

> The following bug has been logged on the website:
>
> Bug reference:      14037
> Logged by:          vendforce
> Email address:      vendforce@gmail.com
> PostgreSQL version: 9.5.1
> Operating system:   linux
> Description:
>
> I want to move the .psql_history file that resides in $home
>
> In mysql you can do
> export MSQL_HISTDFILE=3D/newfolder/mysq_history,
> and the history file is created and remains in the exported string
>
> Id tried that with PYSQL_HISTFILE &  PSQL_HISTFILE and it doesnt work
>
> Is there a way to move the history file to a different folder
>

=E2=80=8BThis is not a bug and it is documented in psql's documentation cha=
pter -
so not exactly non-intuitive.

http://www.postgresql.org/docs/9.2/static/app-psql.html

=E2=80=8BThe only thing that might be surprising is that you actually have =
to
change it inside of psql (either via CLI option or meta-command) as opposed
to setting a shell environment variable.

David J.

pgsql-bugs by date:

Previous
From: bricklen
Date:
Subject: Re: BUG #14037: Move history file
Next
From: "David G. Johnston"
Date:
Subject: Re: BUG #14037: Move history file