Alvaro Herrera <[EMAIL PROTECTED]> writes: > Gevik Babakhani wrote: >> Of course a TABLE owner can revoke privileges from himself. But why >> would a DATABASE owner want to lock himself out from CONNECTING to his >> database.
> I don't know :-) If it doesn't make sense for somebody, then she won't > do it. > It's not like we are going out of our way to allow somebody to revoke > the privileges from oneself. We are just keeping the thing as simple as > possible. There is a good, defensible reason for this: the behavior of security-related commands should be as simple and unsurprising as possible. Weird special cases added in the name of improving usability are likely to do the opposite. What would you expect REVOKE CONNECT ON DATABASE foo FROM foo_owner to do, if not revoke his connect privileges? Failing to do so could be called a security vulnerability. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings