From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Cc: | Larry Rosenman <ler(at)lerctr(dot)org>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: CREATE DATABASE foo OWNER bar |
Date: | 2007-04-17 20:48:01 |
Message-ID: | 200704172048.l3HKm1I28748@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Alvaro Herrera wrote:
> Larry Rosenman wrote:
> > Greetings,
> > I think I found a bug, or at least a POLA violation. At work, I created
> > a user that is NOT a superuser, nor can that user create databases. When I
> > did a create database foo owner bar, all the schemas are set to be owned by
> > the superuser that created the database, not the database owner.
> >
> > Shouldn't everything that is in the DB be owned by the purported owner?
>
> Right. This is on TODO:
>
> %Set proper permissions on non-system schemas during db creation
>
> Currently all schemas are owned by the super-user because they are copied from
> the template1 database.
>
>
> I note it is marked with a %, but it's clearly not easy at all.
'%' removed.
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2007-04-17 20:51:01 | Re: CREATE DATABASE foo OWNER bar |
Previous Message | Tom Lane | 2007-04-17 20:36:37 | Re: Unhelpful debug tools on OS X :-( |