pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Perrin <andrew_perrin@unc.edu>
To: borg@errorcode.com
Cc: pgsql-sql@postgresql.org
Subject: Re: use of arrow keys to traverse history
Date: Wed, 25 Apr 2001 14:13:35 -0400
Message-ID: <3AE713CF.A6DF030B@unc.edu> (raw)
References: <3AE6C64A.12354.AE3AD30@localhost>

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



view thread (7+ messages)  latest in thread

Message-ID: <3AE713CF.A6DF030B@unc.edu>
Permalink:  ../3AE713CF.A6DF030B@unc.edu/
Also on:    postgresql.org/message-id/3AE713CF.A6DF030B@unc.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: andrew_perrin@unc.edu, borg@errorcode.com
  Subject: Re: use of arrow keys to traverse history
  In-Reply-To: <3AE713CF.A6DF030B@unc.edu>
  References: <3AE6C64A.12354.AE3AD30@localhost> <3AE713CF.A6DF030B@unc.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox