Re: GRANT USAGE ON SCHEMA - Mailing list pgsql-admin

From David G. Johnston
Subject Re: GRANT USAGE ON SCHEMA
Date
Msg-id CAKFQuwY8+JZe1KDh25LrqxbKNe-sVp265K5vFdzMXG1EHOcmhw@mail.gmail.com
Whole thread Raw
In response to GRANT USAGE ON SCHEMA  (Edwin UY <edwin.uy@gmail.com>)
List pgsql-admin
On Sat, Jun 14, 2025 at 3:09 PM Edwin UY <edwin.uy@gmail.com> wrote:
I thought it was supposed to all 'full' access of one schema to the other
 
Where did you get the idea that objects (aside from roles) ever get privileges on other objects?  Or did you also create roles "a" and "b" and are just using the wrong terminology here?

There is also no such thing as permissions on one type of object somehow affecting your privileges on other object types.  Your privileges on schemas will not influence (directly) your permissions on tables.  Neither to grant additional privileges or to block them - say if you don't have usage on schema but do have select on a contained table.  Corner-cases that do behave this way notwithstanding - it isn't reliable.

David J.

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: GRANT USAGE ON SCHEMA
Next
From: Kushal Shri
Date:
Subject: Re: PostgreSQL Upgrade (v9.5 to v12) with Django 2.0