Re: psql possible TODO

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: psql possible TODO
Date: 2006-12-05 21:32:40
Message-ID: 11397.1165354360@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Joshua D. Drake" <jd(at)commandprompt(dot)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.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2006-12-05 21:34:51 Re: psql possible TODO
Previous Message Jim C. Nasby 2006-12-05 21:26:59 Re: Double entries in log for page slots in beta3