pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mihai Gheorghiu <tanethq@earthlink.net>
Cc: pgsql-general@postgresql.org
Subject: Re: User privileges
Date: Tue, 16 Oct 2001 23:17:07 -0400
Message-ID: <24963.1003288627@sss.pgh.pa.us> (raw)
In-Reply-To: <001301c15667$b12fbac0$6e646464@New6.Travel>
References: <001301c15667$b12fbac0$6e646464@New6.Travel>

"Mihai Gheorghiu" <tanethq@earthlink.net> writes:
> It is possible that a user is a member of more than one group.
> Do this user's privileges AND or OR the privileges of each of the two
> groups?

OR.  A user's privileges are always the union of what he has personally
and what he has via any group.  See aclcheck() in
src/backend/catalog/aclchk.c: it keeps looking for any way to grant
permission.

			regards, tom lane



view thread (12+ messages)  latest in thread

Message-ID: <24963.1003288627@sss.pgh.pa.us>
Permalink:  ../24963.1003288627@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24963.1003288627@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, tanethq@earthlink.net
  Subject: Re: User privileges
  In-Reply-To: <24963.1003288627@sss.pgh.pa.us>
  References: <001301c15667$b12fbac0$6e646464@New6.Travel> <24963.1003288627@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox