Re: psql and readline - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: psql and readline
Date
Msg-id 200301091505.h09F5Fl09065@candle.pha.pa.us
Whole thread Raw
In response to Re: psql and readline  (Justin Clift <justin@postgresql.org>)
Responses Re: psql and readline
List pgsql-hackers
Justin Clift wrote:
> Dan Langille wrote:
> <snip>
> > As this is changing existing behaviour, I think adding an optional  
> > switch to revert to the old behaviour is a good idea.
> 
> Two thoughts:
> 
> a) Is it possible to change the behavior of the history as we're 
> discussing?  Haven't heard Peter's response to this.
> 
> b) Do we really want to go to the effort of adding a switch to revert to 
> previous behaviour for something like this?  It's almost definitely a 
> win to have \e commands appear in the history, and seems a bit to 
> trivial for adding switches for.

Let's suppose I am writing a query, and then I do \e to edit the query,
and I exit the editor and return to psql.  Suppose I decide I want to
reedit, so I up arrow.  I would expect to get \e, not the query I just
edited, no?

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: "Dan Langille"
Date:
Subject: Re: psql and readline
Next
From: Justin Clift
Date:
Subject: Re: psql and readline