Re: use of arrow keys to traverse history

Поиск
Список
Период
Сортировка
От Andrew Perrin
Тема Re: use of arrow keys to traverse history
Дата
Msg-id 3AE713CF.A6DF030B@unc.edu
обсуждение исходный текст
Ответ на use of arrow keys to traverse history  ("Peter J. Schoenster" <borg@errorcode.com>)
Список 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 по дате отправления:

Предыдущее
От: "Peter J. Schoenster"
Дата:
Сообщение: use of arrow keys to traverse history
Следующее
От: Dorin Grunberg
Дата:
Сообщение: Re: use of arrow keys to traverse history