agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: rajan <vgmonnet@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: getting permission denied error for user2 while proper privileges are present
Date: Sat, 18 May 2019 00:46:57 -0400
Message-ID: <525.1558154817@sss.pgh.pa.us> (raw)
In-Reply-To: <1558152796956-0.post@n3.nabble.com>
References: <1558152796956-0.post@n3.nabble.com>

rajan <vgmonnet@gmail.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





view thread (5+ messages)  latest in thread

Message-ID: <525.1558154817@sss.pgh.pa.us>
Permalink:  ../525.1558154817@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/525.1558154817@sss.pgh.pa.us

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: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, vgmonnet@gmail.com
  Subject: Re: getting permission denied error for user2 while proper privileges are present
  In-Reply-To: <525.1558154817@sss.pgh.pa.us>

* 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