Re: Roles - Mailing list pgsql-general

From Simon Riggs
Subject Re: Roles
Date
Msg-id CANbhV-Fe=Z=kzHLC+THXv0Gm7RktgUNJh5o8=yvO6PML4vuG4w@mail.gmail.com
Whole thread Raw
In response to Re: Roles  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: Roles  (Gambhir Singh <gambhir.singh05@gmail.com>)
List pgsql-general
On Wed, 15 Sept 2021 at 00:11, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
>
> On 9/14/21 1:13 PM, Gambhir Singh wrote:
> > Hi,
> >
> > I'm having 4 Databases in the AWS RDS Cluster. Just wanna to know how to
> > create roles which are specific to each database, because when I'm
> > creating roles in one Database, they are visible in other Databases.
>
> You can't, roles are global objects in a cluster.

Roles are global objects that are visible in all databases.

But you can GRANT the CONNECT privilege for a role to only specific databases.

-- 
Simon Riggs                http://www.EnterpriseDB.com/



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Basic Questions about PostgreSQL.
Next
From: Rich Shepard
Date:
Subject: Re: SQL queries as sets: was The tragedy of SQL