public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: Wong, Kam Fook (TR Technology) <[email protected]>
Cc: Pgsql-admin <[email protected]>
Subject: Re: 101 Grants and Access Right Table/View
Date: Thu, 17 Oct 2024 15:48:39 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CH0PR03MB6100645C5E5EF4CBD89AB31BFE472@CH0PR03MB6100.namprd03.prod.outlook.com>
References: <CH0PR03MB6100645C5E5EF4CBD89AB31BFE472@CH0PR03MB6100.namprd03.prod.outlook.com>

"Wong, Kam Fook (TR Technology)" <[email protected]> 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





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: 101 Grants and Access Right Table/View
  In-Reply-To: <[email protected]>

* 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