Re: DROP USER weirdness in 7.2.1 - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: DROP USER weirdness in 7.2.1
Date
Msg-id Pine.LNX.4.44.0210152033280.928-100000@localhost.localdomain
Whole thread Raw
In response to DROP USER weirdness in 7.2.1  (Daniel Kalchev <daniel@digsys.bg>)
Responses Re: DROP USER weirdness in 7.2.1
List pgsql-hackers
Daniel Kalchev writes:

> One would normally expect, that when DROP USER someuser is issued, all
> associated data structures will be readjusted, especially ownership and access
> rights.

Perhaps, but the documentation states otherwise.

> There is no way to remove rights of this 'user' 98 using REVOKE etc.
>
> Perhaps full dump/reload will remove the rights, because that user will not be
> found, but restore may fail due to the error conditions.
>
> Any resolution for this?

Recreate the user with the given ID and drop the objects manually.

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: orderRules() now a bad idea?
Next
From: Peter Eisentraut
Date:
Subject: COPY syntax