RE: [EXT] Re: 101 Grants and Access Right Table/View

From: "Wong, Kam Fook (TR Technology)" <kamfook(dot)wong(at)thomsonreuters(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: RE: [EXT] Re: 101 Grants and Access Right Table/View
Date: 2024-10-17 21:09:01
Message-ID: CH0PR03MB610027C698325AB59F9A9C21FE472@CH0PR03MB6100.namprd03.prod.outlook.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Tom,

These are existing objects/tables. So I assume after the grants were run, the information_schema.role_table_grants and information_schema.usage_privileges shouldn't be blank right/now rows return?

Thank you
Kam
-----Original Message-----
From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Sent: Thursday, October 17, 2024 2:49 PM
To: Wong, Kam Fook (TR Technology) <kamfook(dot)wong(at)thomsonreuters(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: [EXT] Re: 101 Grants and Access Right Table/View

External Email: Use caution with links and attachments.

"Wong, Kam Fook (TR Technology)" <kamfook(dot)wong(at)thomsonreuters(dot)com> writes:
> I have a simple question for "access rights" view or table within Postgres.
> Here is my grant query:

> GRANT USAGE ON SCHEMA abc TO abc_user; GRANT SELECT, INSERT, UPDATE,
> DELETE ON ALL TABLES IN SCHEMA abc TO abc_user; GRANT ALL ON ALL
> SEQUENCES IN SCHEMA abc TO abc_user; GRANT EXECUTE ON ALL ROUTINES IN
> SCHEMA abc TO abc_user;

> But I can't find a view/table that is associated with the above
> grants?

Those commands would simply apply the grants to any existing objects in the given schema, so you'd have to look at such objects to see the effects. If there are none, nothing happens.

You might be looking for ALTER DEFAULT PRIVILEGES?

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2024-10-17 21:17:29 Re: [EXT] Re: 101 Grants and Access Right Table/View
Previous Message Wong, Kam Fook (TR Technology) 2024-10-17 21:06:09 RE: [EXT] Re: 101 Grants and Access Right Table/View