Re: psql possible TODO

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: psql possible TODO
Дата
Msg-id 200612052134.kB5LYpC18743@momjian.us
обсуждение исходный текст
Ответ на Re: psql possible TODO  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: psql possible TODO  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-hackers
Tom Lane wrote:
> "Joshua D. Drake" <jd@commandprompt.com> writes:
> >> But lastly, do we need this at all?  It seems like a relatively awkward,
> >> highly error-prone way to do what you can do today with control-P and
> >> re-execute.
> 
> > If you mean control-P as in "paste" then I would say... get your hands
> > off the mouse. The mouse is counter productive and it is faster to do
> > this:
> 
> No, I mean control-P as in "recall the previous entry".  What you showed
> takes *more* work to recall a recent entry than hitting control-P a few
> times.  It has vastly greater chance of error, too, ie, executing the
> wrong command for lack of any feedback about what it is you're really
> about to execute.  I will grant that control-P isn't a good way to
> recall an entry from dozens or hundreds of commands ago, but that's what
> control-R is for; and I don't see that a command number would help any
> for that anyway.
> 
> > Just like bash.
> 
> What we have is just like bash --- at least the parts of it that I use.

This reminds me of the old csh function where you could recall things by
numbers and do search/replace on them.  The capability was so hard to
use I could imagine anyone _normal_ using it.

--  Bruce Momjian   bruce@momjian.us EnterpriseDB    http://www.enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: psql possible TODO
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Double entries in log for page slots in beta3