Re: getting permission denied error for user2 while proper privileges are present

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: rajan <vgmonnet(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: getting permission denied error for user2 while proper privileges are present
Date: 2019-05-18 04:46:57
Message-ID: 525.1558154817@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

rajan <vgmonnet(at)gmail(dot)com> writes:
> Please someone help me on the below. Unable to understand why user2 is not
> having access.

Because you said "noinherit". Per the CREATE ROLE man page:

INHERIT
NOINHERIT

These clauses determine whether a role “inherits” the privileges of
roles it is a member of. A role with the INHERIT attribute can
automatically use whatever database privileges have been granted to all
roles it is directly or indirectly a member of. Without INHERIT,
membership in another role only grants the ability to SET ROLE to that
other role; the privileges of the other role are only available after
having done so. If not specified, INHERIT is the default.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message rajan 2019-05-18 05:50:26 Re: getting permission denied error for user2 while proper privileges are present
Previous Message rajan 2019-05-18 04:13:16 getting permission denied error for user2 while proper privileges are present