Re: bogus psql "could not save history file[...]" message in 9.3.6

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: bogus psql "could not save history file[...]" message in 9.3.6
Date: 2015-03-14 01:03:10
Message-ID: CAKFQuwYdzGyN3SagMBYCCn8hsFKifLw0UpNF4St8wW_F2D+GBg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Fri, Mar 13, 2015 at 5:36 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> "David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> writes:
> > Installed 9.3.6 from apt.postgresql.org onto a reasonably clean Ubuntu
> > 14.04 (trusty)
>
> > $ sudo apt-get install [...] # ok
> > $ ls -la /var/lib/postgresql # 9.3 is the only result; equivalent to (ls
> > -la ~)
> > $ sudo su - postgres # ok
> > $ psql # ok
> >> select 1; # ok
> >> \q # 'could not save history to file
> "/var/lib/postgresql/.psql_history":
> > No such file or directory' !!!
>
> Sigh ... let me guess ... libedit? How old? What was the last
> combination that worked on this platform?
>
> The only patch recently applied in this area is b0fd5c552, which I really
> don't think would have any impact on exit-time saving behavior. What
> seems substantially more likely is that your command history library
> changed.
>
> regards, tom lane
>

​I can research a bit: I'm using a 14.04 Vagrant box
(box-cutter/ubuntu1404-desktop )
with some pre-installed (notably Libre (Open?) Office) on the box
​before
I added tmux, git, and Sublime Text 3 myself
​and then
install
​ed​
PostgreSQL.

​Can you give me a command to run to check what it is you are saying. My
Linux-fu is not that strong yet...​

​There isn't any actual problem writing the history out, even the first
time, there is just the spurious warning.

This is my first time using Ubuntu 14.04 for any purpose.

I'm not inclined to spend too much time figuring out how the system came to
be whacked, if it is, but if you've got a few quick things I can check I'd
be glad to do so.

David J.​

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2015-03-14 01:13:29 Re: bogus psql "could not save history file[...]" message in 9.3.6
Previous Message Tom Lane 2015-03-14 00:36:21 Re: bogus psql "could not save history file[...]" message in 9.3.6