Postgresql Postgres:将模式myschema上的用法授予myrole;错误

Postgresql Postgres:将模式myschema上的用法授予myrole;错误,postgresql,grant,Postgresql,Grant,我是博士后的新手(在过去23年中与甲骨文合作)。 我想将模式上的用法授予角色。但这似乎是不可能的: ps >create role marco_role; CREATE ROLE ps >create schema myschema; CREATE SCHEMA ps >grant usage on myschema to marco_role; FEHLER: Relation »myschema« existiert nicht (English: Relation do

我是博士后的新手(在过去23年中与甲骨文合作)。 我想将模式上的用法授予角色。但这似乎是不可能的:

ps >create role marco_role;
CREATE ROLE
ps >create schema myschema;
CREATE SCHEMA
ps >grant usage on myschema to marco_role;
FEHLER:  Relation »myschema« existiert nicht (English: Relation does not exists)

我有什么问题

要在架构上授予特权,您需要在架构上使用


谢谢,我错了!
grant usage ON SCHEMA myschema to marco_role;
alter default privileges  
   in schema myschema
   grant select on tables to marco_role;