pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #7578: Not able to drop user if S/he has permission on tablespace
4+ messages / 3 participants
[nested] [flat]

* BUG #7578: Not able to drop user if S/he has permission on tablespace
@ 2012-10-02 08:49 wheelly@gmail.com
  2012-10-03 15:55 ` Re: BUG #7578: Not able to drop user if S/he has permission on tablespace Alvaro Herrera <alvherre@2ndquadrant.com>
  0 siblings, 1 reply; 4+ messages in thread

From: wheelly@gmail.com @ 2012-10-02 08:49 UTC (permalink / raw)
  To: pgsql-bugs

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.





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #7578: Not able to drop user if S/he has permission on tablespace
  2012-10-02 08:49 BUG #7578: Not able to drop user if S/he has permission on tablespace wheelly@gmail.com
@ 2012-10-03 15:55 ` Alvaro Herrera <alvherre@2ndquadrant.com>
  2012-10-08 11:45   ` Re: BUG #7578: Not able to drop user if S/he has permission on tablespace Nikolay <wheelly@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Alvaro Herrera @ 2012-10-03 15:55 UTC (permalink / raw)
  To: wheelly <wheelly@gmail.com>; +Cc: pgsql-bugs

Excerpts from wheelly's message of mar oct 02 05:49:27 -0300 2012:

> Where is a bug in PostgreSQL or in documentation?

I think it was a bug in the code.  I have committed a patch that should
fix this problem.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #7578: Not able to drop user if S/he has permission on tablespace
  2012-10-02 08:49 BUG #7578: Not able to drop user if S/he has permission on tablespace wheelly@gmail.com
  2012-10-03 15:55 ` Re: BUG #7578: Not able to drop user if S/he has permission on tablespace Alvaro Herrera <alvherre@2ndquadrant.com>
@ 2012-10-08 11:45   ` Nikolay <wheelly@gmail.com>
  2012-10-16 15:25     ` Re: BUG #7578: Not able to drop user if S/he has permission on tablespace Alvaro Herrera <alvherre@2ndquadrant.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Nikolay @ 2012-10-08 11:45 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: pgsql-bugs

Where can I found this path?

03.10.2012 18:55, Alvaro Herrera пишет:
> Excerpts from wheelly's message of mar oct 02 05:49:27 -0300 2012:
>
>> Where is a bug in PostgreSQL or in documentation?
>
> I think it was a bug in the code.  I have committed a patch that should
> fix this problem.
>




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #7578: Not able to drop user if S/he has permission on tablespace
  2012-10-02 08:49 BUG #7578: Not able to drop user if S/he has permission on tablespace wheelly@gmail.com
  2012-10-03 15:55 ` Re: BUG #7578: Not able to drop user if S/he has permission on tablespace Alvaro Herrera <alvherre@2ndquadrant.com>
  2012-10-08 11:45   ` Re: BUG #7578: Not able to drop user if S/he has permission on tablespace Nikolay <wheelly@gmail.com>
@ 2012-10-16 15:25     ` Alvaro Herrera <alvherre@2ndquadrant.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Alvaro Herrera @ 2012-10-16 15:25 UTC (permalink / raw)
  To: Nikolay <wheelly@gmail.com>; +Cc: pgsql-bugs

Nikolay escribió:
> Where can I found this path?

http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=412a4295b5390cfe4fd5b9fc84a25c6e2d...

You can also download the 9.1 snapshot from
ftp.postgresql.org/pub/snapshot/9.1, which should already contain this
patch.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services




^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2012-10-16 15:25 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-10-02 08:49 BUG #7578: Not able to drop user if S/he has permission on tablespace wheelly@gmail.com
2012-10-03 15:55 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2012-10-08 11:45   ` Nikolay <wheelly@gmail.com>
2012-10-16 15:25     ` Alvaro Herrera <alvherre@2ndquadrant.com>

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