Re: dropping a user causes pain (#2)

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: dropping a user causes pain (#2)
Date: 2003-08-11 14:58:46
Message-ID: 3F37AF26.1050602@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


I did have a thought that it could be done lazily (on backend startup)
on other databases and immediately on the current database. I guess it
depends on the cost of checking for such things - wouldn't want to add
greatly to startup time.

That would leave a small window of orphanage for existing backends on
other databases, but is arguably an improvement on the current situation.

OTOH I'm not sure how much harm this causes, other than aesthetic.

andrew

Tom Lane wrote:

>"Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au> writes:
>
>
>>Ah OK, I must have been thinking of the database owner check. I'd vote for
>>(1) checking that they own no objects and by default owning all their stuff
>>to the database owner. Plus add an optional clause:
>>DROP USER foo OWNER TO bob;
>>
>>
>
>If you can suggest a plausible way that DROP USER is going to change the
>contents of other databases (which might well contain things owned by
>the target user), this might get onto the TODO list --- although I'd
>personally prefer RESTRICT/CASCADE options. So far, since no one has
>the foggiest idea how to implement cross-database removal, it's just
>been left as-is.
>
> regards, tom lane
>
>
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-08-11 15:45:53 Re: Farewell
Previous Message Larry Rosenman 2003-08-11 14:56:07 Oh, Speaking of users and owning things....