Re: Consistent \d commands in psql

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Consistent \d commands in psql
Дата
Msg-id 87abke8svm.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: Consistent \d commands in psql  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Consistent \d commands in psql  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
"Tom Lane" <tgl@sss.pgh.pa.us> writes:

> Gregory Stark <stark@enterprisedb.com> writes:
>> One --perhaps nice, perhaps not-- property of this is that if you defined a
>> function named "rtrim" and then did "\df rtrim" it would show you _both_ the
>> system and user function and make it easier to see the conflict. Whereas the
>> other behaviour I proposed would hide the system function which might
>> exacerbate the user's confusion.
>
> Yeah, that is a very good point indeed.
>
> Another way we could approach this is
>
>     \df    -> all functions
>     \dfS    -> sys functions only
>     \dfU    -> user functions only
>
> which avoids falling into the trap Greg mentions.

That doesn't satisfy the original source of the annoyance which is that \df
spams your terminal with ten screens of system functions with your user
functions hidden amongst them.

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com
  Ask me about EnterpriseDB's PostGIS support!

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Consistent \d commands in psql
Следующее
От: "Alex Hunsaker"
Дата:
Сообщение: Re: [badalex@gmail.com: Re: [BUGS] Problem identifying constraints which should not be inherited]