Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TIyAT-0004DD-Pn for pgsql-bugs@postgresql.org; Tue, 02 Oct 2012 08:49:29 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TIyAS-0005Gf-GK for pgsql-bugs@postgresql.org; Tue, 02 Oct 2012 08:49:29 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TIyAR-0006PA-Ve for pgsql-bugs@postgresql.org; Tue, 02 Oct 2012 08:49:28 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1TIyAR-0001qA-FF for pgsql-bugs@postgresql.org; Tue, 02 Oct 2012 08:49:27 +0000 Date: Tue, 02 Oct 2012 08:49:27 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7578: Not able to drop user if S/he has permission on tablespace To: pgsql-bugs@postgresql.org From: wheelly@gmail.com X-Pg-Spam-Score: -4.0 (----) X-Archive-Number: 201210/15 X-Sequence-Number: 34315 The following bug has been logged on the website: Bug reference: 7578 Logged by: Nikolay Email address: wheelly@gmail.com PostgreSQL version: 9.1.4 Operating system: Linux version 3.2.0-3-amd64 (Debian 3.2.21-3) Description: = Hello, The bug is similar to existing bug "BUG #6116: Not able to drop user if S/he has permission on tablespace". http://archives.postgresql.org/pgsql-bugs/2011-07/msg00110.php You wrote to mr. "tushar" : ------------------------------------------------------------------------ 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. = ------------------------------------------------------------------------ But documentation say reversal thing (http://www.postgresql.org/docs/9.1/static/sql-drop-owned.html): ------------------------------------------------------------------------ DROP OWNED drops all the objects in the current database that are owned by one of the specified roles. Any privileges granted to the given roles on objects in the current database will also be revoked. ------------------------------------------------------------------------ Where is a bug in PostgreSQL or in documentation? Thank you, Nikolay.