Re: BUG #12300: ~/.psql_history nonexistent warning on first run

From: Dzmitry Lazerka <dlazerka(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #12300: ~/.psql_history nonexistent warning on first run
Date: 2014-12-22 01:52:16
Message-ID: CANo14X6ST4-EKwM9nVu0uz2UzSTnE4vNk=mDmZwbKi3E2T8O+A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hmm, gotcha, thanks. Maybe those libraries don't deserve to be used by such
a serious project like PostgreSQL if they are such a mess.

I have `history` available, but nor `readline`, nor `libedit` available as
commands in my bash.

`man history` shows "GNU History 6.3 2013 June 27 HISTORY(3)", so it's
probably it, unless my `man` is out-of-date.

Bash version: GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)

-----
Best regards,
Dzmitry Lazerka

On Sun, Dec 21, 2014 at 4:48 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> dlazerka(at)gmail(dot)com writes:
> > PostgreSQL version: 9.3.5
> > Operating system: Linux Mint x64 3.13.0-24-generic #47-Ubuntu
>
> > 1. Either install fresh PostgreSQL on fresh OS, or just delete
> > `~/.psql_history`.
> > 2. Run `~ $ psql` (assuming that permissions are already set up for your
> > user).
> > 3. type any command;
> > 4. Press Ctrl-D, or type "\q".
>
> > OBSERVED: warning
> > could not save history to file "/home/myuser/.psql_history": No such
> file or
> > directory
>
> Which readline/history library are you using --- GNU readline, or libedit?
> And what version exactly?
>
> FWIW, I do not see this behavior with readline 6.0 on my RHEL6 machine,
> nor with the libedit that Apple is shipping in Yosemite (seems to be a
> patched copy of libedit 3.0). It wouldn't surprise me a whole lot if it
> happens with some other versions of libedit. There isn't a lot we can do
> if it's libedit's fault; that library is enough of a mess, and enough of a
> moving target, that we have to be satisfied if it works at all, never mind
> cosmetic issues.
>
> regards, tom lane
>

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2014-12-22 02:00:41 Re: BUG #12300: ~/.psql_history nonexistent warning on first run
Previous Message Tom Lane 2014-12-22 00:48:51 Re: BUG #12300: ~/.psql_history nonexistent warning on first run