Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZqkKP-0003KZ-Kx for pgsql-bugs@arkaria.postgresql.org; Mon, 26 Oct 2015 16:08:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZqkKO-0001gb-UM for pgsql-bugs@arkaria.postgresql.org; Mon, 26 Oct 2015 16:08:56 +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) (envelope-from ) id 1ZqkKO-0001g5-4j for pgsql-bugs@postgresql.org; Mon, 26 Oct 2015 16:08:56 +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) (envelope-from ) id 1ZqkKL-0007qt-Ir for pgsql-bugs@postgresql.org; Mon, 26 Oct 2015 16:08:55 +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 t9QG8nxf028959; Mon, 26 Oct 2015 12:08:49 -0400 From: Tom Lane To: news@emmanuelsambo.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13733: ~/.psql_history* corrupted In-reply-to: <20151026152214.3021.13548@wrigleys.postgresql.org> References: <20151026152214.3021.13548@wrigleys.postgresql.org> Comments: In-reply-to news@emmanuelsambo.com message dated "Mon, 26 Oct 2015 15:22:14 -0000" Date: Mon, 26 Oct 2015 12:08:49 -0400 Message-ID: <28958.1445875729@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 news@emmanuelsambo.com writes: > The following bug has been logged on the website: > Bug reference: 13733 > Logged by: Emmanuel Sambo > Email address: news@emmanuelsambo.com > PostgreSQL version: 9.4.5 > Operating system: Apple Mac OS X El Capitan 10.11.1 > Description: > Upgrading from PostgreSQL 9.4.4 to 9.4.5 deleted my entire psql history in > two of my ~/.psql_history- > Looking at this file I can see: > - all the spaces are encoded as utf-8: "\040" > - each history entry is truncated at 1021 characters This probably means you accidentally switched from using libedit to libreadline, or vice versa, when you rebuilt Postgres. They're not very compatible as to history file format :-( 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