From: Tom Lane <tgl@sss.pgh.pa.us>
To: dlazerka@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12300: ~/.psql_history nonexistent warning on first run
Date: Sun, 21 Dec 2014 19:48:51 -0500
Message-ID: <20159.1419209331@sss.pgh.pa.us> (raw)
In-Reply-To: <20141221053342.11502.68526@wrigleys.postgresql.org>
References: <20141221053342.11502.68526@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
dlazerka@gmail.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
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, dlazerka@gmail.com
Subject: Re: BUG #12300: ~/.psql_history nonexistent warning on first run
In-Reply-To: <20159.1419209331@sss.pgh.pa.us>
References: <20141221053342.11502.68526@wrigleys.postgresql.org> <20159.1419209331@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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