pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #14037: Move history file
4+ messages / 3 participants
[nested] [flat]
* BUG #14037: Move history file
@ 2016-03-20 15:55 vendforce@gmail.com
0 siblings, 2 replies; 4+ messages in thread
From: vendforce@gmail.com @ 2016-03-20 15:55 UTC (permalink / raw)
To: pgsql-bugs
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=/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
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #14037: Move history file
@ 2016-03-21 15:49 bricklen <bricklen@gmail.com>
parent: vendforce@gmail.com
1 sibling, 0 replies; 4+ messages in thread
From: bricklen @ 2016-03-21 15:49 UTC (permalink / raw)
To: vendforce@gmail.com; +Cc: 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
>
> 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
>
The docs list "PSQL_HISTORY" as the environment variable to edit (
http://www.postgresql.org/docs/current/static/app-psql.html.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #14037: Move history file
@ 2016-03-21 15:50 David G. Johnston <david.g.johnston@gmail.com>
parent: vendforce@gmail.com
1 sibling, 1 reply; 4+ messages in thread
From: David G. Johnston @ 2016-03-21 15:50 UTC (permalink / raw)
To: vendforce@gmail.com; +Cc: 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=/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
>
This is not a bug and it is documented in psql's documentation chapter -
so not exactly non-intuitive.
http://www.postgresql.org/docs/9.2/static/app-psql.html
The 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.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #14037: Move history file
@ 2016-03-21 15:51 David G. Johnston <david.g.johnston@gmail.com>
parent: David G. Johnston <david.g.johnston@gmail.com>
0 siblings, 0 replies; 4+ messages in thread
From: David G. Johnston @ 2016-03-21 15:51 UTC (permalink / raw)
To: vendforce@gmail.com; +Cc: pgsql-bugs
On Mon, Mar 21, 2016 at 8:50 AM, David G. Johnston <
david.g.johnston@gmail.com> wrote:
> 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=/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
>>
>
> This is not a bug and it is documented in psql's documentation chapter -
> so not exactly non-intuitive.
>
> http://www.postgresql.org/docs/9.2/static/app-psql.html
>
> The 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.
>
>
edit: apparently didn't scroll down far enough - bricklen is correct about
their ALSO being a shell environment variable.
Dav
id J.
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2016-03-21 15:51 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-03-20 15:55 BUG #14037: Move history file vendforce@gmail.com
2016-03-21 15:49 ` bricklen <bricklen@gmail.com>
2016-03-21 15:50 ` David G. Johnston <david.g.johnston@gmail.com>
2016-03-21 15:51 ` David G. Johnston <david.g.johnston@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox