Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZtKNw-0005uB-Eo for pgsql-bugs@arkaria.postgresql.org; Mon, 02 Nov 2015 19:03:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZtKNu-0006l9-DM for pgsql-bugs@arkaria.postgresql.org; Mon, 02 Nov 2015 19:03:14 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZtKNu-0006l3-1E for pgsql-bugs@postgresql.org; Mon, 02 Nov 2015 19:03:14 +0000 Received: from mout.gmx.net ([212.227.15.19]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1ZtKNr-0007hE-5e for pgsql-bugs@postgresql.org; Mon, 02 Nov 2015 19:03:12 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0Ld1CS-1aJYRo2pWa-00iAgT for ; Mon, 02 Nov 2015 20:03:08 +0100 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id 3A76A2034A for ; Mon, 2 Nov 2015 14:03:07 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Mon, 02 Nov 2015 14:03:07 -0500 X-Sasl-enc: xG6Q58wxeAN9A+YqCYNbFYGLggRTe7ego8hWxfRJRI7J 1446490986 Received: from [192.168.1.59] (unknown [204.145.120.11]) by mail.messagingengine.com (Postfix) with ESMTPA id CD259C016DB; Mon, 2 Nov 2015 14:03:06 -0500 (EST) Subject: Re: BUG #13733: ~/.psql_history* corrupted To: Tom Lane , news@emmanuelsambo.com References: <20151026152214.3021.13548@wrigleys.postgresql.org> <28958.1445875729@sss.pgh.pa.us> Cc: pgsql-bugs@postgresql.org From: Peter Eisentraut Message-ID: <5637B366.3010308@gmx.net> Date: Mon, 2 Nov 2015 14:03:02 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <28958.1445875729@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:C7uEc62fVOvOq7M5jeTIrqxfX4zCk+twz+I7+ft31IQzunVn841 3m86x+D9+aP35xEL0zJBdAAIzuj0ZHGGXeHoIG4kag/NEByff7/MBRtjeHXe7Lk9pase7Lk Kugxlq25YnS5gW+y/oRVn0iDpmKjouEcVWRvp3+fwJVPSOFV4zrZKZ2EdS7oJxtcTn4gmau 752FJZJp022k2HXvC9luQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:4AnKZkS0IZw=:OV8R24MjGpWRjtKOjYvu1F bhj0O/eWdZIdc23/HTsI976oaJ0bTlsJ3mF1lHZEom7D0dMlYZiPOw6RY2rjrKzzX3eLRWRLQ /uYXifL7MVVeWyXchN0O6KoWb1U2Sst11WCO5VVZyTIs5NdmeJzRGaygz5Mf0CohDLruormIM zKUxKroHMMSuTUZwtf53s2WBNwEbiVppM/znzUpW49TZY68GX/gZDJUTmNH1L41EWVLtQCHHW RjmkFR1fU4eoO+z6DsWAStP4OZ8vg+kyk5icknIujzKlQRPbmi4paDzwrYq0KLmXs2KDxuL7a vQQ5O5D/7bfoLDAUtbizPS81CdeAgO3+CFv/cNmC97OJGEf6J2/SDTYebiEiSnUDymxL8Ifej WQ1Ii0L0xJ0ALS50gHK96OFZnodgB/u0nowj1Yjyor5/qvNHqU5mpqvq/eDSmAXPlJT0Noqnd j4Mi0GffwZBEFp3X+H1UmabjQ2IwloymP5wie152hNkedOeUqS5+CLlpTMdQ8yHeZ90QExCbW muUAuZM3wrYHkrDw/06IrmuvLr+gvqhh74nH1bDbch6Eex+/tXbMVl+0RDl+yPi97yLZ8yUdo pWaUdd7t+YlS2cmiTOZrKCHksXhPL0aQH64+k1q8UDUow5zO7lFIExvwja10xzXtczjC67ThJ 8rsymgcQ9YQ+wupBSaYN39SDiryO2E74Tdg5QM9tXPBC9rUR0SRHxyOxs7HfBZj/BnliaBcf2 01SPlinHRFQD+zG6jPkU3THmBmjyk5iSUseqx5fdrBIQDCvjUdRfeXrk7FhX/h9s+y0eSmBnr YOIoF1y X-Pg-Spam-Score: -2.6 (--) 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 On 10/26/15 12:08 PM, Tom Lane wrote: > 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 :-( I have noticed that building PostgreSQL with libxml support on El Capitan by default ends up building against the system libedit, because it has a symlink at /usr/lib/libreadline.dylib, and xml2-config points to that directory, so it ends up early in the search path. Since I don't have the pre-El Capitan installation anymore, and can't verify whether this changed, but the problem is pretty clear. For the time being, I'm working around it like this: XML2_CONFIG=: CPPFLAGS=-I/usr/include/libxml2 Of course, building without libxml would also work. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs