DROP GROUP leaves permissions a mess ... - Mailing list pgsql-hackers

From Marc G. Fournier
Subject DROP GROUP leaves permissions a mess ...
Date
Msg-id 20050725185658.C54567@svr1.postgresql.org
Whole thread Raw
Responses Re: DROP GROUP leaves permissions a mess ...  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Re: DROP GROUP leaves permissions a mess ...  (Stephen Frost <sfrost@snowman.net>)
List pgsql-hackers
Using an 8.0.3 database, if I do:

CREATE GROUP testgrp WITH USER pgsql;
GRANT ALL ON timezone TO GROUP testgrp;
DROP GROUP testgrp;

The table permissions still contain the reference to the 'group':
 public | timezone                | table    | {pgsql=arwdRxt/pgsql,"group 100=arwdRxt/pgsql"}

And you can't REVOKE those permissions afterwards:

ams=# REVOKE ALL ON timezone FROM GROUP testgrp;
ERROR:  group "testgrp" does not exist
ams=# REVOKE ALL ON timezone FROM GROUP "100";
ERROR:  group "100" does not exist

Should there not be an ERROR returned when you try and drop a user/group 
that has permissions on a table in the database, to prevent this?


pgsql-hackers by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: More buildfarm stuff
Next
From: "Jim C. Nasby"
Date:
Subject: Re: More buildfarm stuff