dbTalk Databases Forums  

[BUGS] BUG #1203: Dropping a user does not revoke their permissions

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1203: Dropping a user does not revoke their permissions in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PostgreSQL Bugs List
 
Posts: n/a

Default [BUGS] BUG #1203: Dropping a user does not revoke their permissions - 08-02-2004 , 07:27 PM







The following bug has been logged online:

Bug reference: 1203
Logged by: Geoff Kloess

Email address: geoffk (AT) garden-grove (DOT) org

PostgreSQL version: 7.4

Operating system: Redhat ES3

Description: Dropping a user does not revoke their permissions

Details:

Maybe this isn't a bug, because I find it hard to believe that it hasn't
been noticed already, but I didn't find anything in the documentation about
this.

Dropping a user does not automatically revoke their permissions on tables,
instead it changes the permission from their name to their system id number
when displayed using "\z".

It seems weird that the database will keep around permissions for
non-existent users. And it causes an error when doing a pg_restore.

It is also impossible to revoke permissions when the user attached to them
does not exist, which means you have to create a temporary user with the
same sysid as the old user, revoke the permissions and then drop the
temporary user.

It seems like it would make a lot more sense to just revoke the permissions
at the same time the user is dropped.


---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.