Re: FWD: Re: Updated backslash consistency patch

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: FWD: Re: Updated backslash consistency patch
Дата
Msg-id 20090116034129.GU4656@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: FWD: Re: Updated backslash consistency patch  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> Josh Berkus <josh@agliodbs.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

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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: FWD: Re: Updated backslash consistency patch
Следующее
От: Tom Lane
Дата:
Сообщение: Re: FWD: Re: Updated backslash consistency patch