Re: .psql_history file is messed up and control-r does not work

From: zhong ming wu <mr(dot)z(dot)m(dot)wu(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: .psql_history file is messed up and control-r does not work
Date: 2012-02-06 00:40:30
Message-ID: CAMUiGaZHrjJbbwS3wFfr4BMHhobq62SUEfe-3k-HEvSgsBNgzg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>
> Yeah, that's what it will look like if psql is using Apple's libedit
> library; it's unrelated to the server.
>
> I think libedit doesn't support control-r either, not totally sure
> though.  In any case there are some known bugs in libedit that Apple's
> not been terribly swift to fix.  I'd suggest installing GNU readline
> and linking psql against that instead.

Thanks. compiling with readline solves both problems.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Ribe 2012-02-06 02:03:44 sql query bug???
Previous Message Tom Lane 2012-02-06 00:05:25 Re: .psql_history file is messed up and control-r does not work