Re: inconsistent owners in newly created databases?
| От | Greg Stark |
|---|---|
| Тема | Re: inconsistent owners in newly created databases? |
| Дата | |
| Msg-id | 873c6gyu4u.fsf@stark.xeocode.com обсуждение исходный текст |
| Ответ на | Re: inconsistent owners in newly created databases? (Fabien COELHO <coelho@cri.ensmp.fr>) |
| Ответы |
Re: inconsistent owners in newly created databases?
|
| Список | 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 по дате отправления: