Re: Schema authorization after create database.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Schema authorization after create database.
Дата
Msg-id 21954.1123769339@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Schema authorization after create database.  (Ian FREISLICH <if@hetzner.co.za>)
Ответы Re: Schema authorization after create database.  (Tsirkin Evgeny <tsurkin@mail.jct.ac.il>)
Список pgsql-admin
Ian FREISLICH <if@hetzner.co.za> writes:
> I ran into this little astonishment yesterday on 7.4.8.  When I
> create a database connected as the super user using:

> CREATE DATABASE foo OWNER = foo;

> The database is indeed owned by user foo, but the automatically
> created public schema is is owned by the database super user.  Should
> this schema not be created as owned by the database owner specified
> in the CREATE DATABASE command?

That's the way it's supposed to work.  CREATE DATABASE does not change
anything inside the copied database.

            regards, tom lane

В списке pgsql-admin по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: restoring an old database to a new instance -- possible ?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Problem in restore data