From: wheelly@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #7578: Not able to drop user if S/he has permission on tablespace
Date: Tue, 02 Oct 2012 08:49:27 +0000
Message-ID: <E1TIyAR-0001qA-FF@wrigleys.postgresql.org> (raw)
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" <tushar(dot)qa(at)gmail(dot)com>:
------------------------------------------------------------------------
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.
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: wheelly@gmail.com
Subject: Re: BUG #7578: Not able to drop user if S/he has permission on tablespace
In-Reply-To: <E1TIyAR-0001qA-FF@wrigleys.postgresql.org>
References: <E1TIyAR-0001qA-FF@wrigleys.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