Thread: Drop user doesn't drop granted privs?

Drop user doesn't drop granted privs?

From
Pete Deffendol
Date:
Correct me if I'm wrong, but it seems that PostgreSQL 7.4 does not remove a user's privileges on tables when that user is dropped.  The privileges are still showing up if I do a \z in psql, but with the SYSID instead of the username (obviously, since the username doesn't exist.)  Is there an easy way to remove the privileges, either at the same time a user is dropped, or afterwards?

Pete

Re: Drop user doesn't drop granted privs?

From
Stephen Frost
Date:
* Pete Deffendol (peter.deffendol@gmail.com) wrote:
> Correct me if I'm wrong, but it seems that PostgreSQL 7.4 does not remove a
> user's privileges on tables when that user is dropped.  The privileges are
> still showing up if I do a \z in psql, but with the SYSID instead of the
> username (obviously, since the username doesn't exist.)  Is there an easy
> way to remove the privileges, either at the same time a user is dropped, or
> afterwards?

8.1 has improvments in this area...

    Thanks,

        Stephen

Attachment

Re: Drop user doesn't drop granted privs?

From
Jaime Casanova
Date:
On 1/6/06, Pete Deffendol <peter.deffendol@gmail.com> wrote:
> Correct me if I'm wrong, but it seems that PostgreSQL 7.4 does not remove a
> user's privileges on tables when that user is dropped.  The privileges are
> still showing up if I do a \z in psql, but with the SYSID instead of the
> username (obviously, since the username doesn't exist.)  Is there an easy
> way to remove the privileges, either at the same time a user is dropped, or
> afterwards?
>
> Pete
>
>

you haveto create a user with that SYSID, the REVOKE the privileges
and the drop the user...

8.1 is better in this area...

--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)