This is a discussion on DROP GROUP leaves permissions a mess ... within the pgsql Hackers forums, part of the PostgreSQL category; --> Using an 8.0.3 database, if I do: CREATE GROUP testgrp WITH USER pgsql; GRANT ALL ON timezone TO GROUP ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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? ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster |
| |||
| On Mon, Jul 25, 2005 at 07:02:37PM -0300, Marc G. Fournier wrote: > 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? Yes, this is a long-standing known bug and has been fixed in 8.1. -- Alvaro Herrera (<alvherre[a]alvh.no-ip.org>) "La Primavera ha venido. Nadie sabe como ha sido" (A. Machado) ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings |
| ||||
| * Marc G. Fournier (scrappy@postgresql.org) wrote: > 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? That's exactly what the shared-dependency patch that was recently applied to CVS HEAD is supposed to deal with, I believe... Stephen -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFC5YszrzgMPqB3kigRArORAJ989xipR8QP6Ltn9pK0Iv wXVS0RrACfY70q rohK7BzJUQeDCOBJBaqf/ko= =orLa -----END PGP SIGNATURE----- |