pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: news@emmanuelsambo.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13733: ~/.psql_history* corrupted
Date: Mon, 2 Nov 2015 14:03:02 -0500
Message-ID: <5637B366.3010308@gmx.net> (raw)
In-Reply-To: <28958.1445875729@sss.pgh.pa.us>
References: <20151026152214.3021.13548@wrigleys.postgresql.org>
	<28958.1445875729@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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-<db>
>> 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



view thread (7+ messages)  latest in thread

Message-ID: <5637B366.3010308@gmx.net>
Permalink:  ../5637B366.3010308@gmx.net/
Also on:    postgresql.org/message-id/5637B366.3010308@gmx.net

 · 

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: peter_e@gmx.net, tgl@sss.pgh.pa.us, news@emmanuelsambo.com
  Subject: Re: BUG #13733: ~/.psql_history* corrupted
  In-Reply-To: <5637B366.3010308@gmx.net>
  References: <20151026152214.3021.13548@wrigleys.postgresql.org> <28958.1445875729@sss.pgh.pa.us> <5637B366.3010308@gmx.net>

* 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