Re: FWD: Re: Updated backslash consistency patch

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Greg Sabino Mullane <greg(at)turnstep(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: FWD: Re: Updated backslash consistency patch
Date: 2009-01-16 03:41:29
Message-ID: 20090116034129.GU4656@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

* Tom Lane (tgl(at)sss(dot)pgh(dot)pa(dot)us) wrote:
> Josh Berkus <josh(at)agliodbs(dot)com> writes:
> >> But I may be trying to push water up a hill, so, I can live with
> >> adding \dfU and keeping \df as-was.
>
> > BTW, why the capital? \dfu is *considerably* easier to type than \dfU.
>
> Because (1) its counterpart S is capitalized by historical tradition,
> and (2) we are going to apply this to all the variants of \d so we'd
> have a conflict with \du. (Even if we special-cased our way out of the
> actual conflict, there would certainly be user confusion there.)
>
> Also (3) you are not actually going to use this as much as you think
> you are, so saving a shift keypress is not the be-all and end-all.

Well, and (4), you could always 'remap' it, if you will:

-- obviously with \\dfU if it gets added
postgres*=> \set df '\\df'
postgres*=> :df

List of functions
[...]

I use ':r' for 'rollback;' all the time (not my idea, someone on IRC),
but a : tends to be as easy for me as \. <shrug> I wouldn't complain
about a more generic aliasing ability in psql, mind you.

Thanks,

Stephen

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-01-16 03:42:21 Re: FWD: Re: Updated backslash consistency patch
Previous Message Stephen Frost 2009-01-16 03:36:45 Re: FWD: Re: Updated backslash consistency patch