Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXxKD-00041l-FK for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Aug 2016 21:15:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bXxKC-0007Cg-Ms for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Aug 2016 21:15:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bXxKC-0007CV-AJ for pgsql-bugs@postgresql.org; Thu, 11 Aug 2016 21:15:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bXxK8-0004Hw-SV for pgsql-bugs@postgresql.org; Thu, 11 Aug 2016 21:15:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u7BLFUKF024680; Thu, 11 Aug 2016 17:15:30 -0400 From: Tom Lane To: Rick Otten cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14287: =?UTF-8?Q?psql=5Fhistory=20gets=20wiped=20?= =?UTF-8?Q?out?= In-reply-to: References: <20160811183456.GA656368@alvherre.pgsql> <15159.1470941747@sss.pgh.pa.us> Comments: In-reply-to Rick Otten message dated "Thu, 11 Aug 2016 16:52:06 -0400" Date: Thu, 11 Aug 2016 17:15:30 -0400 Message-ID: <24679.1470950130@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Rick Otten 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