Cannot use the queries buffer of psql... :-(

Started by Bruno Baguettealmost 23 years ago3 messagesgeneral
Jump to latest
#1Bruno Baguette
bruno.baguette@netcourrier.com

Hello,

I've a problem with psql and PostgreSQL 7.2.2 on i686-pc-linux-gnu server.

When I hit the (upper arrow) key, I should have the last executed query
displayed... But instead having the last query, I have a strange thing
that appears : "^[[A" (without the quotes).

I don't find how to fix that problem... Do you have an idea ?

Thanks in advance for your help !

--
------------------------------------------------
Bruno BAGUETTE - bruno.baguette@netcourrier.com

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Bruno Baguette (#1)
Re: Cannot use the queries buffer of psql... :-(

"Bruno Baguette" <bruno.baguette@netcourrier.com> writes:

I've a problem with psql and PostgreSQL 7.2.2 on i686-pc-linux-gnu server.
When I hit the (upper arrow) key, I should have the last executed query
displayed... But instead having the last query, I have a strange thing
that appears : "^[[A" (without the quotes).

Sounds like you built it without libreadline support. You need both
readline and readline-devel packages installed when you configure and
build Postgres, or configure will leave it out.

regards, tom lane

#3Bruno Baguette
bruno.baguette@netcourrier.com
In reply to: Bruno Baguette (#1)
Re: Cannot use the queries buffer of psql... :-(

On Sun, 27 Apr 2003 15:47:35 +0000, Tim Ashman wrote:

When I hit the (upper arrow) key, I should have the last executed query
displayed... But instead having the last query, I have a strange thing
that appears : "^[[A" (without the quotes).

This is usually a terminal emulation problem. Are you telnet'ing or
SSH'ing in?

Yes, I'm SSH'ing this server, but when I use my SSH client (Putty 0.53b)
with other server I don't have this problem with the queries buffer. :-(

As suggested by Tom Lane, maybe this install of PostgreSQL has been
compiled without readline, I will check that also...

Thanks for your help ! :-)

--
------------------------------------------------
Bruno BAGUETTE - bruno.baguette@netcourrier.com