From: | Andrew Perrin <andrew_perrin(at)unc(dot)edu> |
---|---|
To: | borg(at)errorcode(dot)com |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: use of arrow keys to traverse history |
Date: | 2001-04-25 18:13:35 |
Message-ID: | 3AE713CF.A6DF030B@unc.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)postgresql(dot)org
--
--------------------------------------------------------------
Andrew J. Perrin - Programmer/Analyst, Desktop Support
Children's Primary Care Research Group, UNC - Chapel Hill
(919)966-9394 * andrew_perrin(at)unc(dot)edu
From | Date | Subject | |
---|---|---|---|
Next Message | Peter J. Schoenster | 2001-04-25 18:42:50 | use of arrow keys to traverse history |
Previous Message | Peter Eisentraut | 2001-04-25 17:28:55 | Re: RI permission problem |