From: tushar <tushar.qa@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #6116: Not able to drop user if S/he has permission on tablespace
Date: Wed, 13 Jul 2011 12:57:18 GMT
Message-ID: <201107131257.p6DCvIDA098948@wwwmaster.postgresql.org> (raw)
The following bug has been logged online:
Bug reference: 6116
Logged by: tushar
Email address: tushar.qa@gmail.com
PostgreSQL version: 9.0
Operating system: Fedora 14
Description: Not able to drop user if S/he has permission on
tablespace
Details:
Steps to reproduce
================
\\create a directory
postgres=# \! mkdir /tmp/g100
\\create a tablespace
postgres=# CREATE TABLESPACE f location '/tmp/g100';
CREATE TABLESPACE
\\create a User
postgres=# CREATE user abc;
CREATE ROLE
\\grant all on tablespace to user
postgres=# GRANT all on TABLESPACE f to abc;
GRANT
\\drop permission from user
postgres=# drop owned by abc;
DROP OWNED
\\ Try to drop User
postgres=# drop user abc ;
ERROR: role "abc" cannot be dropped because some objects depend on it
DETAIL: privileges for tablespace f
postgres=#
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: tushar.qa@gmail.com
Subject: Re: BUG #6116: Not able to drop user if S/he has permission on tablespace
In-Reply-To: <201107131257.p6DCvIDA098948@wwwmaster.postgresql.org>
References: <201107131257.p6DCvIDA098948@wwwmaster.postgresql.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