pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rick Otten <rotten@windfish.net>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14287: psql_history gets wiped out
Date: Thu, 11 Aug 2016 17:15:30 -0400
Message-ID: <24679.1470950130@sss.pgh.pa.us> (raw)
In-Reply-To: <ab5dca6c005692f7bbf5820173b32101@www.windfish.net>
References: <20160811183456.GA656368@alvherre.pgsql>
	<15159.1470941747@sss.pgh.pa.us>
	<ab5dca6c005692f7bbf5820173b32101@www.windfish.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (13+ messages)  latest in thread

Message-ID: <24679.1470950130@sss.pgh.pa.us>
Permalink:  ../24679.1470950130@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24679.1470950130@sss.pgh.pa.us

 · 

reply

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, rotten@windfish.net
  Subject: Re: BUG #14287: psql_history gets wiped out
  In-Reply-To: <24679.1470950130@sss.pgh.pa.us>
  References: <20160811183456.GA656368@alvherre.pgsql> <15159.1470941747@sss.pgh.pa.us> <ab5dca6c005692f7bbf5820173b32101@www.windfish.net> <24679.1470950130@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