From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | sekhar chandra <sekharclouddbengineer(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Fwd: not able to give usage access to public schema |
Date: | 2020-06-13 17:58:59 |
Message-ID: | 46c038b7-034c-261b-1780-280306558dae@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 6/13/20 10:33 AM, sekhar chandra wrote:
> Adrian - when I follow the same steps what you did . in my case , the
> result is false.
>
>
> grant usage on schema public to role_test ;
> GRANT
>
> SELECT rolname, has_schema_privilege('role_test', 'public', 'usage')
> from pg_roles where rolname = 'role_test';
> rolname | has_schema_privilege
> -----------+----------------------
> role_test | f
>
Might be a good time to point out :) :
https://www.postgresql.org/docs/12/ddl-schemas.html#DDL-SCHEMAS-PUBLIC
" Note that by default, everyone has CREATE and USAGE privileges on the
schema public. This allows all users that are able to connect to a given
database to create objects in its public schema. "
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2020-06-13 18:46:12 | Re: Oracle vs. PostgreSQL - a comment |
Previous Message | Bruce Momjian | 2020-06-13 17:57:39 | Re: pg_dump of database with numerous objects |