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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: zhong ming wu <mr(dot)z(dot)m(dot)wu(at)gmail(dot)com>
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:05:25
Message-ID: 24386.1328486725@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

zhong ming wu <mr(dot)z(dot)m(dot)wu(at)gmail(dot)com> writes:
> My .psql_history contains lines of the form.
> select\040sum(price)\040from\040products\040p\040join\040

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.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message zhong ming wu 2012-02-06 00:40:30 Re: .psql_history file is messed up and control-r does not work
Previous Message zhong ming wu 2012-02-05 23:32:08 .psql_history file is messed up and control-r does not work