Re: psql and Gnu readline - Mailing list pgsql-general

From Tom Lane
Subject Re: psql and Gnu readline
Date
Msg-id 22360.963388417@sss.pgh.pa.us
Whole thread Raw
In response to Re: psql and Gnu readline  (Chris Bitmead <chrisb@nimrod.itg.telstra.com.au>)
Responses Figured it out (psql and Gnu readline)  (Erich <hh@cyberpass.net>)
List pgsql-general
> Erich wrote:
>> I've just installed PostgreSQL 7.02 on my OpenBSD box.  Everything is
>> working fine.  I made sure to link in gnu readline in psql.  It seems
>> to be working, because I can edit a line.  For instance, Ctl-A takes
>> me to the beginning of a line, Ctl-K kills it, etc.  However, Ctl-P
>> doesn't go up a line, so I can't access previous lines, and lines are
>> not saved in the .psql_history file which is mentioned on the man
>> page.

IIRC the "history" facility is separate from the core of libreadline.
You may not have libhistory installed, or at least our configure script
failed to notice that it's there.  Check the xxxHISTORY defines in
config.h.

            regards, tom lane

pgsql-general by date:

Previous
From: Holger Klawitter
Date:
Subject: Re: psql and Gnu readline
Next
From: "Thomas Krebs"
Date:
Subject: Re: [NOVICE] newbie problem on creating table