| От | Tom Lane |
|---|---|
| Тема | Re: Error 42501 permission denied for schema |
| Дата | |
| Msg-id | 14158.1269618354@sss.pgh.pa.us обсуждение |
| Ответ на | Error 42501 permission denied for schema (akp geek <akpgeek@gmail.com>) |
| Ответы |
Re: Error 42501 permission denied for schema
|
| Список | pgsql-general |
akp geek <akpgeek@gmail.com> writes:
> I have 2 schemas , schema1 and schema 2.
> 1. GRANT USAGE ON SCHEMA schema1 TO schema2;
You seem to be confusing schemas and users --- they are not the same
thing at all. The above grants the right to lookup objects in schema1
to the user (a/k/a role) named schema2; who doesn't necessarily have
anything to do with objects in schema2.
Also, although you failed to show the specific command that was failing,
I suspect what you are actually running into is lack of CREATE
permission not USAGE permission.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера