public inbox for [email protected]  
help / color / mirror / Atom feed
From: Wong, Kam Fook (TR Technology) <[email protected]>
To: rams nalabolu <[email protected]>
Cc: Pgsql-admin <[email protected]>
Subject: RE: [EXT] Re: 101 Grants and Access Right Table/View
Date: Thu, 17 Oct 2024 21:06:09 +0000
Message-ID: <CH0PR03MB610099890EF9C03379601CB5FE472@CH0PR03MB6100.namprd03.prod.outlook.com> (raw)
In-Reply-To: <CAHq7gtCCe3i4=SMbpqUC2WRzVVkBo4kGKvrj0E8Fnk28v4Ko-w@mail.gmail.com>
References: <CH0PR03MB6100645C5E5EF4CBD89AB31BFE472@CH0PR03MB6100.namprd03.prod.outlook.com>
	<CAHq7gtCCe3i4=SMbpqUC2WRzVVkBo4kGKvrj0E8Fnk28v4Ko-w@mail.gmail.com>

Usename = postgres is the grantor.  The object owner is flyway.  I tried the grants on both postgres user and flyway user and the result is the same.

From: rams nalabolu <[email protected]>
Sent: Thursday, October 17, 2024 1:41 PM
To: Wong, Kam Fook (TR Technology) <[email protected]>
Cc: Pgsql-admin <[email protected]>
Subject: [EXT] Re: 101 Grants and Access Right Table/View

External Email: Use caution with links and attachments.

Who is the grantor? And the objects owner?
Only the objects owner can grant the privileges

On Thu, Oct 17, 2024 at 1:38 PM Wong, Kam Fook (TR Technology) <[email protected]<mailto:[email protected]>> wrote:
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?  The view/table below doesn’t shown the above granted rights.

select * from information_schema.role_table_grants;
select * from information_schema.usage_privileges

Thank you
Kam Fook Wong
This e-mail is for the sole use of the intended recipient and contains information that may be privileged and/or confidential. If you are not an intended recipient, please notify the sender by return e-mail and delete this e-mail and any attachments. Certain required legal entity disclosures can be accessed on our website: https://www.thomsonreuters.com/en/resources/disclosures.html


view thread (6+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: RE: [EXT] Re: 101 Grants and Access Right Table/View
  In-Reply-To: <CH0PR03MB610099890EF9C03379601CB5FE472@CH0PR03MB6100.namprd03.prod.outlook.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox