Re: BUG #14287: psql_history gets wiped out

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rick Otten <rotten(at)windfish(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14287: psql_history gets wiped out
Date: 2016-08-11 21:15:30
Message-ID: 24679.1470950130@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Rick Otten <rotten(at)windfish(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2016-08-11 23:09:14 Re: BUG: Session getting disconnected while executing a function to create materialised views in PostgreSQL 9.6
Previous Message Rick Otten 2016-08-11 20:52:06 Re: BUG #14287: psql_history gets wiped out