Re: Consistent \d commands in psql
От
Gregory Stark
Тема
Re: Consistent \d commands in psql
Дата
Msg-id
87hcejsmle.fsf@oxford.xeocode.com
Ответ на
Re: Consistent \d commands in psql (Tom Lane)
Список
Дерево обсуждения
Consistent \d commands in psql Greg Sabino Mullane <greg@turnstep.com>
Re: Consistent \d commands in psql Bruce Momjian <bruce@momjian.us>
Re: Consistent \d commands in psql Tom Lane <tgl@sss.pgh.pa.us>
Re: Consistent \d commands in psql Gregory Stark <stark@enterprisedb.com>
Re: Consistent \d commands in psql Tom Lane <tgl@sss.pgh.pa.us>
Re: Consistent \d commands in psql Alvaro Herrera <alvherre@commandprompt.com>
Re: Consistent \d commands in psql "Brendan Jurd" <direvus@gmail.com>
Re: Consistent \d commands in psql Gregory Stark <stark@enterprisedb.com>
Re: Consistent \d commands in psql Tom Lane <tgl@sss.pgh.pa.us>
Re: Consistent \d commands in psql Gregory Stark <stark@enterprisedb.com>
Re: Consistent \d commands in psql Tom Lane <tgl@sss.pgh.pa.us>
Re: Consistent \d commands in psql David Fetter <david@fetter.org>
Re: Consistent \d commands in psql Tom Lane <tgl@sss.pgh.pa.us>
Re: Consistent \d commands in psql "Brendan Jurd" <direvus@gmail.com>
Re: Consistent \d commands in psql Tom Lane <tgl@sss.pgh.pa.us>
Re: Consistent \d commands in psql "Greg Sabino Mullane" <greg@turnstep.com>
Re: Consistent \d commands in psql Bruce Momjian <bruce@momjian.us>
Re: Consistent \d commands in psql Tom Lane <tgl@sss.pgh.pa.us>
Re: Consistent \d commands in psql Gregory Stark <stark@enterprisedb.com>
Re: Consistent \d commands in psql "Brendan Jurd" <direvus@gmail.com>
Re: Consistent \d commands in psql Andrew Dunstan <andrew@dunslane.net>
Re: Consistent \d commands in psql Magnus Hagander <magnus@hagander.net>
Re: Consistent \d commands in psql Gregory Stark <stark@enterprisedb.com>
Re: Consistent \d commands in psql "Brendan Jurd" <direvus@gmail.com>
Re: Consistent \d commands in psql "Heikki Linnakangas" <heikki@enterprisedb.com>
"Tom Lane" writes: > "Greg Sabino Mullane" writes: >>> \df Lists all user functions >>> \df [pattern] Lists both system and user functions matching [pattern] >>> \df * Lists all system and user functions > >> I don't like this for two reasons: the items returned changes based on >> the existence of args, rather than on the command itself, and more >> importantly, this would make it inconsistent with the other backslash >> commands. > > I think you misunderstood the context of the discussion. Whatever we do > will be done to the whole family of \d commands --- we are just using > \df as an exemplar. Hm, I didn't realize that. I thought the reason \df was special was that users often need to refer to "system" functions. Whereas they never need to refer to system tables or system sequences etc unless they know that's what they're looking for. However, now that I look at the list of \d commands that argument kind of falls flat. Users also need to find "system" operators, data types, etc. And I think the same logic as \df applies for those other things too. \dt pg_class should "just work". And if you create a macaddr data type it doesn't seem like too much of an imposition to play it safe and have \dT macaddr show the user that there are now two matching data types. So I guess I should just play along and pretend that's what I meant all along :) -- Gregory Stark EnterpriseDB http://www.enterprisedb.com Ask me about EnterpriseDB's PostGIS support!
В списке pgsql-patches по дате отправления