Re: inconsistent owners in newly created databases? - Mailing list pgsql-hackers

From Greg Stark
Subject Re: inconsistent owners in newly created databases?
Date
Msg-id 873c6gyu4u.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: inconsistent owners in newly created databases?  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: inconsistent owners in newly created databases?  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers
Fabien COELHO <coelho@cri.ensmp.fr> writes:

>       nspacl   = aclitems_switch_grantor(nspacl, datdba)

Instead of having a hard coded list of template1 objects that need to be
chowned to the database owner. Perhaps there should be a special user like
dbowner which owns the schema and whatever other objects are necessary. Then
createdb would chown over anything owned by dbowner but not by objects owned
by postgres.

This would have the advantage that a dba could add objects to template1 and
choose whether to set them to be owned by postgres or owned by dbowner. Then
create various databases owned by different users and automatically have the
selected template objects be owned by the database owner.

-- 
greg



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: ALTER TABLE TODO items
Next
From: Rod Taylor
Date:
Subject: Re: Multiple Xids in PGPROC?