Re: BUG #14287: psql_history gets wiped out - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #14287: psql_history gets wiped out
Date
Msg-id 24679.1470950130@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #14287: psql_history gets wiped out  (Rick Otten <rotten@windfish.net>)
Responses Re: BUG #14287: psql_history gets wiped out
List pgsql-bugs
Rick Otten <rotten@windfish.net> writes:
> I'm using the repo:
>  deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main 9.5
> That repo version is using _libedit_, not _libreadline_:

Hmm.  Our general experience is that libedit is buggier than libreadline,
but I've not heard of this particular symptom before.  It might be
entertaining to see if you can strace psql while it's doing this.
Something like

    strace -o some.file psql ... usual parameters ...
    ... issue a command or two just to be sure there's history to write
    ... close window

and then look at the last few dozen lines of some.file.

            regards, tom lane



pgsql-bugs by date:

Previous
From: Rick Otten
Date:
Subject: Re: BUG #14287: psql_history gets wiped out
Next
From: Michael Paquier
Date:
Subject: Re: BUG: Session getting disconnected while executing a function to create materialised views in PostgreSQL 9.6