pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: dom@happygiraffe.net
To: Pradeepkumar, Pyatalo (IE10) <Pradeepkumar.Pyatalo@honeywell.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: PSQL History not working
Date: Wed, 1 Dec 2004 15:38:29 +0000
Message-ID: <20041201153829.GA80624@ppe.happygiraffe.net> (raw)
In-Reply-To: <77ED2BF75D59D1439F90412CC5B109741555D6BC@ie10-sahara.hiso.honeywell.com>
References: <77ED2BF75D59D1439F90412CC5B109741555D6BC@ie10-sahara.hiso.honeywell.com>

On Wed, Dec 01, 2004 at 06:25:47AM -0700, Pradeepkumar, Pyatalo (IE10) wrote:
> I am using Postgresql 7.4.3. Everythings working fine except for the psql
> history. I did go through the documentation, but did not get much
> information about it. The psql doesn't remember the previous commands. There
> is no .psql_history file under the $HOME/ and there is no .psqlrc file also.
> Its real pain to retype the same command all the time.
> 
> Could anyone help me in configuring the .psql_history file.

It sounds like your version of postgres was built without readline
support.  I see this output on my FreeBSD box:

    % psql -V
    psql (PostgreSQL) 7.4.6
    contains support for command-line editing

Unless your output contains that, you'll probably have to rebuild
PostgreSQL.

If you don't want to rebuild PostgreSQL, you might want to look at
something like rlwrap[1] which will do the same sort of thing.

-Dom

[1] http://utopia.knoware.nl/~hlub/uck/rlwrap/



view thread (3+ messages)  latest in thread

Message-ID: <20041201153829.GA80624@ppe.happygiraffe.net>
Permalink:  ../20041201153829.GA80624@ppe.happygiraffe.net/
Also on:    postgresql.org/message-id/20041201153829.GA80624@ppe.happygiraffe.net

 · 

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-admin@postgresql.org
  Cc: dom@happygiraffe.net, Pradeepkumar.Pyatalo@honeywell.com
  Subject: Re: PSQL History not working
  In-Reply-To: <20041201153829.GA80624@ppe.happygiraffe.net>
  References: <77ED2BF75D59D1439F90412CC5B109741555D6BC@ie10-sahara.hiso.honeywell.com> <20041201153829.GA80624@ppe.happygiraffe.net>

* 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