Re: psql possible TODO

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stephen Harris <lists(at)spuddy(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: psql possible TODO
Date: 2006-12-06 05:33:59
Message-ID: 18554.1165383239@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Stephen Harris <lists(at)spuddy(dot)org> writes:
> On Tue, Dec 05, 2006 at 05:34:58PM -0500, Tom Lane wrote:
>> Stephen Harris <lists(at)spuddy(dot)org> writes:
>>> Silly: You could even do \r xyz and load the buffer with the last line
>>> beginning xyz
>>
>> We've got that: control-R xyz.

> Not quite. "Beginning" is the difference.

True, but upthread it was suggested that sometimes one might like to
search for critical difference-making strings that were *not* the first
thing in the command ... so somehow I'm not finding a forced line-start
anchor to be a net plus.

> I've been a Unix SA for 16 years now and recalling commands by number is
> still a convenient thing, especially when you have 2 or 3 multi-line
> statements which are 90% the same.

Indeed. The part of this that I still don't buy is where the easiest
way to distinguish among those statements is an artificial command
number.

Still, it seems we've reduced this to an emacs-vs-vi type argument where
what you're used to is the only thing that counts. As long as the patch
isn't unduly ugly/invasive and doesn't break any existing usages, I
won't complain about it.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message mark 2006-12-06 06:17:30 Re: psql possible TODO
Previous Message Stephen Harris 2006-12-06 04:46:52 Re: psql possible TODO