Re: owner orphaned databases - Mailing list pgsql-general

From CSN
Subject Re: owner orphaned databases
Date
Msg-id 20040827015617.81991.qmail@web52907.mail.yahoo.com
Whole thread Raw
In response to owner orphaned databases  (CSN <cool_screen_name90001@yahoo.com>)
List pgsql-general
Hmm, for some reason the "deleted" user does in fact
exist but isn't getting added in the "CREATE USER"
section of the dumpall file. It has a user id of "1"
if that makes any difference.

CSN


--- CSN wrote:

> Not a big deal, but I'm transferring a dumpall and
> it's choking on databases where the owner no longer
> exists. Maybe it shouldn't be possible to delete a
> user while it still owns databases, or maybe a
> cascade
> option, or requiring changing the ownership to
> another
> user?
>
> CREATE DATABASE "orphan" WITH OWNER = "deleted" ...;
> ...
> SET SESSION AUTHORIZATION "deleted";
> ...
> \c orphan # fails because "orphan" wasn't created
>
>
> CSN
>




__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

pgsql-general by date:

Previous
From: CSN
Date:
Subject: owner orphaned databases
Next
From: "Arthur Ward"
Date:
Subject: Re: performance of IN (subquery)