Re: psql possible TODO - Mailing list pgsql-hackers

From Tom Lane
Subject Re: psql possible TODO
Date
Msg-id 11397.1165354360@sss.pgh.pa.us
Whole thread Raw
In response to Re: psql possible TODO  ("Joshua D. Drake" <jd@commandprompt.com>)
Responses Re: psql possible TODO
Re: psql possible TODO
List pgsql-hackers
"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.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: Double entries in log for page slots in beta3
Next
From: Bruce Momjian
Date:
Subject: Re: psql possible TODO