From: | "Dan Langille" <dan(at)langille(dot)org> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | Dan Langille <dan(at)langille(dot)org>, Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>, Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: psql and readline |
Date: | 2003-01-09 15:24:29 |
Message-ID: | 3E1D4DDD.25278.100E5D19@localhost |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 9 Jan 2003 at 10:13, Bruce Momjian wrote:
> Justin Clift wrote:
> > Bruce Momjian wrote:
> > <snip>
> > > 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?
> >
> > Wouldn't it depend on how this gets implemented?
> >
> > Maybe least negative impact approach (suggested already): If the
> > "large command that was edited" is put in the command history before
> > the \e, then both are available and there is no big change from
> > "expected behaviour".
> >
> > i.e. one up arrow get the previous \e, and a second up arrow would
> > bring up the command that was worked upon.
>
> Makese sense. However, it still has the shock factor of displaying a
> huge query, which is usually what is involved when using the editor.
Which is a good indicator that a way to turn it off is a good idea.
--
Dan Langille : http://www.langille.org/
From | Date | Subject | |
---|---|---|---|
Next Message | Lee Kindness | 2003-01-09 15:25:07 | Re: [PATCHES] PostgreSQL libraries - PThread Support, but not use... |
Previous Message | Peter Mount | 2003-01-09 15:22:46 | Re: psql and readline |