Re: use of arrow keys to traverse history - Mailing list pgsql-sql

From Andrew Perrin
Subject Re: use of arrow keys to traverse history
Date
Msg-id 3AE713CF.A6DF030B@unc.edu
Whole thread Raw
In response to use of arrow keys to traverse history  ("Peter J. Schoenster" <borg@errorcode.com>)
List pgsql-sql
These do suggest (although not require) that the *user* postgres will be
running bash when logged in. To check for sure, do:

finger postgres

which will give you the current shell among other things.

However, this doesn't speak to what I think you're asking, which is
command history and completion within psql (the program), not postgres
(the user).  If that's what you want, you have to compile psql with gnu
readline support, which means you also have to have the gnu readline
libraries available on your machine.

Andy Perrin

"Peter J. Schoenster" wrote:
> 
> Hi,
> 
> Not sure where this question belongs ... I thought postgresql was
> running under the bash shell where I can use up and down arrow
> keys to traverse my command history. I can do this in mysql but
> oddly not in oracle or postgresql.
> 
> /home/postgres
> 
> -rw-r--r--   1 postgres postgres     1422 Feb 16 15:50 .Xdefaults
> -rw-------   1 postgres postgres      458 Feb 17 16:59 .bash_history
> -rw-r--r--   1 postgres postgres       24 Feb 16 15:50 .bash_logout
> -rw-r--r--   1 postgres postgres      230 Feb 16 15:50 .bash_profile
> -rw-r--r--   1 postgres postgres      313 Feb 17 16:36 .bashrc
> 
> Which in my ignorance leads me to believe that postgres will run in
> the bash shell and so I expect the use of arrow keys or command
> history.
> 
> Clues appreciated.
> 
> Peter
> 
> ---------------------------
> "Reality is that which, when you stop believing in it, doesn't go
> away".
>                 -- Philip K. Dick
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

-- 
--------------------------------------------------------------
Andrew J. Perrin - Programmer/Analyst, Desktop Support
Children's Primary Care Research Group, UNC - Chapel Hill
(919)966-9394 * andrew_perrin@unc.edu


pgsql-sql by date:

Previous
From: "Peter J. Schoenster"
Date:
Subject: use of arrow keys to traverse history
Next
From: Dorin Grunberg
Date:
Subject: Re: use of arrow keys to traverse history