Re: small psql patch - show Schema name for \dt \dv \dS

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: small psql patch - show Schema name for \dt \dv \dS
Дата
Msg-id
901.1027174456@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Re: small psql patch - show Schema name for \dt \dv \dS "Greg Sabino Mullane" <greg@turnstep.com>
Re: small psql patch - show Schema name for \dt \dv \dS Rod Taylor <rbt@zort.ca>
Re: small psql patch - show Schema name for \dt \dv \dS Tom Lane <tgl@sss.pgh.pa.us>
Joe Conway  writes:
> It sorts on "Schema" first, and "Name" second.

> Sample output:
>                   List of relations
>          Name        |   Schema   | Type |  Owner
> --------------------+------------+------+----------
>   __testpassbyval    | public     | view | postgres
>   fooview            | public     | view | postgres
>   master_pg_proc     | public     | view | postgres
>   rmt_pg_proc        | public     | view | postgres
>   vw_dblink_get_pkey | public     | view | postgres
>   vw_dblink_replace  | public     | view | postgres
>   ts_view            | testschema | view | postgres

It seems rather odd and confusing that the sort order takes the second
column as the major key.  I think that the sort ordering should be
column 1 then 2.  That means either putting the schema column first,
or keeping this column ordering and sorting on relname before schema.
I lean towards the first choice but can see a case for the second.

			regards, tom lane
В списке pgsql-patches по дате отправления
От: Tom Lane
Дата:
От: Tom Lane
Дата:
FAQ