Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id AABF6B5DBFF for ; Wed, 13 Jul 2011 09:57:19 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 48712-03 for ; Wed, 13 Jul 2011 12:57:19 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 25E4BB5D803 for ; Wed, 13 Jul 2011 09:57:18 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p6DCvImu098949 for ; Wed, 13 Jul 2011 12:57:18 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p6DCvIDA098948; Wed, 13 Jul 2011 12:57:18 GMT (envelope-from www) Date: Wed, 13 Jul 2011 12:57:18 GMT Message-Id: <201107131257.p6DCvIDA098948@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6116: Not able to drop user if S/he has permission on tablespace From: "tushar" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201107/111 X-Sequence-Number: 30723 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=#