Re: BUG #2850: Cannot select from information_schema.schemat
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #2850: Cannot select from information_schema.schemat |
| Дата | |
| Msg-id | 19145.1166713364@sss.pgh.pa.us обсуждение |
| Ответ на | BUG #2850: Cannot select from information_schema.schemat ("Tony Marston" <tony@marston-home.demon.co.uk>) |
| Список | pgsql-bugs |
"Tony Marston" <tony@marston-home.demon.co.uk> writes:
> If I am logged on as a user other than 'postgres' and I try the query
> SELECT * FROM information_schema.schemata
> I get no results. Yet if I try the equivalent query
> SELECT * FROM pg_namespace
> I can see all the available schema names.
> Why is there a difference when the two queries are supposed to provide the
> same results?
They're not "supposed to provide the same results". Per SQL99, the
schemata view is supposed to
Identify the schemata in a catalog that are owned by a given user.
and the SQL definition in the spec makes it clear that it only shows
schemas owned by CURRENT_USER or a role that CURRENT_USER is a member
of.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера