pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@surnet.cl>
Cc: Hackers <pgsql-hackers@postgresql.org>
Subject: Re: [ADMIN] Permissions not removed when group dropped
Date: Sun, 15 May 2005 17:48:56 -0400
Message-ID: <3358.1116193736@sss.pgh.pa.us> (raw)
In-Reply-To: <20050515214253.GA8391@surnet.cl>
References: <E2F600719FA6FF438A680A22A00DA43C05F7AA2C@EXCHANGEDS01.ds.ad.adp.com>
	<20050513213505.GB17830@surnet.cl>
	<172.1116038893@sss.pgh.pa.us>
	<20050514053053.GA26186@surnet.cl>
	<3868.1116084743@sss.pgh.pa.us>
	<20050515214253.GA8391@surnet.cl>

Alvaro Herrera <alvherre@surnet.cl> writes:
> Additionally we need to think what should happen if the user is the
> grantor of some privilege.  I think we should warn in RESTRICT mode, and
> in CASCADE, revoke the privilege from the grantee.

You mean "fail in RESTRICT mode", no?

> Hmm.  We could implement something like "DROP USER LOCALLY [CASCADE |
> RESTRICT]", which would be a very misleading name for operations 2-4
> above.  Additionally, if the user doesn't have references in other
> databases, drop the user itself.  (Note it's inconsistent.)

I'd go for something more like "DROP OWNED OBJECTS", which'd be just
the stuff internal to the current database (owned objects and ACL
entries).  You don't need to drop group memberships per-database.

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <3358.1116193736@sss.pgh.pa.us>
Permalink:  ../3358.1116193736@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3358.1116193736@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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alvherre@surnet.cl, pgsql-hackers@postgresql.org
  Subject: Re: [ADMIN] Permissions not removed when group dropped
  In-Reply-To: <3358.1116193736@sss.pgh.pa.us>
  References: <E2F600719FA6FF438A680A22A00DA43C05F7AA2C@EXCHANGEDS01.ds.ad.adp.com> <20050513213505.GB17830@surnet.cl> <172.1116038893@sss.pgh.pa.us> <20050514053053.GA26186@surnet.cl> <3868.1116084743@sss.pgh.pa.us> <20050515214253.GA8391@surnet.cl> <3358.1116193736@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