From: Alvaro Herrera <alvherre@commandprompt.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: tushar <tushar.qa@gmail.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #6116: Not able to drop user if S/he has permission on tablespace
Date: Wed, 20 Jul 2011 15:55:02 -0400
Message-ID: <1311191541-sup-1840@alvh.no-ip.org> (raw)
In-Reply-To: <CA+Tgmob_QD8LDeHPTCA8=vpdVjmg7dBxWSuxk7AV9mP2TS6m2g@mail.gmail.com>
References: <201107131257.p6DCvIDA098948@wwwmaster.postgresql.org>
<CA+Tgmob_QD8LDeHPTCA8=vpdVjmg7dBxWSuxk7AV9mP2TS6m2g@mail.gmail.com>
Excerpts from Robert Haas's message of mié jul 20 15:11:47 -0400 2011:
> The "DROP OWNED BY" command only drops objects that are owned by a
> user. It doesn't revoke privileges that user has granted: those
> aren't considered dropable objects. So technically speaking all of
> those commands are working just as expected.
>
> Nevertheless, I agree with you that the behavior here leaves a lot to
> be desired. Hunting down the privilege grant that is stopping you
> from dropping a user is pretty darn annoying. I am not sure what to
> do about that, though.
The message detail indicates what's the grant that needs to be revoked.
IIRC we discussed whether DROP OWNED should revoke privileges on
tablespaces and databases just like it does for regular (non shared)
objects, but that went nowhere and nothing got done about it.
I think the expectation is that a combination of DROP OWNED and REASSIGN
OWNED, when applied to sufficient databases, should be enough to let you
drop a user. With that in mind, fixing this bug should be
straightforward.
--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
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-bugs@postgresql.org
Cc: alvherre@commandprompt.com, robertmhaas@gmail.com, tushar.qa@gmail.com
Subject: Re: BUG #6116: Not able to drop user if S/he has permission on tablespace
In-Reply-To: <1311191541-sup-1840@alvh.no-ip.org>
References: <201107131257.p6DCvIDA098948@wwwmaster.postgresql.org> <CA+Tgmob_QD8LDeHPTCA8=vpdVjmg7dBxWSuxk7AV9mP2TS6m2g@mail.gmail.com> <1311191541-sup-1840@alvh.no-ip.org>
* 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