GRANT USAGE ON SCHEMA

From: Edwin UY <edwin(dot)uy(at)gmail(dot)com>
To: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: GRANT USAGE ON SCHEMA
Date: 2025-06-14 22:08:41
Message-ID: CA+wokJ9ApXRPQPoppfsSj0htM_dwSqjQ_RoWXdGb3RqRUtcmmQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

Just playing around here trying and 'confused' what the GRANT USAGE ON
SCHEMA is supposed to be for?
I thought it was supposed to all 'full' access of one schema to the other

I have created 2 schema a, b and I did

grant usage on schema a to b
grant usage on schema b to a

I tried to select tables from one to the other and it is giving permission
denied until I have to do the grant below.

grant all on all tables in schema a to b ;
grant all on all tables in schema b to a ;

Is this expected behavior? Or does the GRANT USAGE only allows
switching between schema?

Regards,
Edd

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2025-06-14 22:29:04 Re: GRANT USAGE ON SCHEMA
Previous Message Frank Lanitz 2025-06-14 19:49:12 Re: Upgrade from 12.22 to 16