Re: why schema name is same as username behaves different then others

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: why schema name is same as username behaves different then others
Дата
Msg-id 5677.1039129070@sss.pgh.pa.us
обсуждение исходный текст
Ответ на why schema name is same as username behaves different then others  (Jie Liang <jie@stbernard.com>)
Список pgsql-admin
Jie Liang <jie@stbernard.com> writes:
> ####I expect to see something like:

You're neglecting the effects of search path.  \dt only shows what's
visible in your search path.  (IIRC, \dt *.* is the easiest way to
see all tables regardless of search path.)

> #### it seems if schema name is same as username then
> #### it will shadow the objects in the public schema that have same name.

That's what it's supposed to do, and yes this is documented, and yes
you can change it if you don't like it.  Read about search_path.

            regards, tom lane

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

Предыдущее
От: Jie Liang
Дата:
Сообщение: why schema name is same as username behaves different then others
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: list schema