Re: psql and readline

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: psql and readline
Дата
Msg-id 200301091513.h09FDEw14061@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: psql and readline  (Justin Clift <justin@postgresql.org>)
Ответы Re: psql and readline  ("Dan Langille" <dan@langille.org>)
Re: psql and readline  (cbbrowne@cbbrowne.com)
Список pgsql-hackers
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.  I
don't feel strongly either way --- I am just pointing out the issue.

--  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 по дате отправления:

Предыдущее
От: Justin Clift
Дата:
Сообщение: Re: psql and readline
Следующее
От: Peter Mount
Дата:
Сообщение: Re: psql and readline