pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Ben K. <bkim@coe.tamu.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: log connections to database
Date: Tue, 4 Apr 2006 16:01:49 -0400
Message-ID: <20060404200149.GB18599@surnet.cl> (raw)
In-Reply-To: <Pine.GSO.4.64.0604041104030.11290@coe.tamu.edu>
References: <Pine.GSO.4.64.0604041104030.11290@coe.tamu.edu>

Ben K. wrote:

> 3. dropping a role
> 
> If the user is not the owner of the object, is the following an intended 
> behavior, or could it be some misconfiguration on my side? (In fact this 
> seems to give me the list of objects the user has acl on.)
> 
> create group ddd;
> grant all on atable to ddd;
> \dp atable
> public | atable | table | {postgres=arwdRxt/postgres,ddd=arwdRxt/postgres}
> drop group ddd;
> ERROR:  role "ddd" cannot be dropped because some objects depend on it
> DETAIL: access to table atable

Yup, this is intended and new in 8.1.  You need to REVOKE the privileges
before being able to drop the role.

In 8.2 (current development) there is a commands to drop the objects
owned by the user, which additionally revokes all the privileges; and a
command to "give" the objects to someone else.  They didn't make the 8.1
deadline however.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support



view thread (3+ messages)  latest in thread

Message-ID: <20060404200149.GB18599@surnet.cl>
Permalink:  ../20060404200149.GB18599@surnet.cl/
Also on:    postgresql.org/message-id/20060404200149.GB18599@surnet.cl

 · 

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: alvherre@commandprompt.com, bkim@coe.tamu.edu
  Subject: Re: log connections to database
  In-Reply-To: <20060404200149.GB18599@surnet.cl>
  References: <Pine.GSO.4.64.0604041104030.11290@coe.tamu.edu> <20060404200149.GB18599@surnet.cl>

* 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