Re: BUG #13783: 'create database test owner testowner' as 'postgres' leaves test.public owned by postgres

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #13783: 'create database test owner testowner' as 'postgres' leaves test.public owned by postgres
Дата
Msg-id 32252.1448402726@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #13783: 'create database test owner testowner' as 'postgres' leaves test.public owned by postgres  (xelah-postgresql@xelah.com)
Ответы Re: BUG #13783: 'create database test owner testowner' as 'postgres' leaves test.public owned by postgres
Список pgsql-bugs
xelah-postgresql@xelah.com writes:
> 'CREATE DATABASE .. OWNER ..' creates a database owned by the correct user,
> but containing a schema apparently owned by the user running 'CREATE
> DATABASE'. This causes us a problem when our test code tries to 'DROP SCHEMA
> public CASCADE' (as a way of clearing the database) as the database owner.

Yes, the public schema remains owned by the bootstrap superuser.  That's
intentional.  If you don't want to have that schema, you can drop it,
but you need superuser privileges to do so.

            regards, tom lane

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: BUG #13783: 'create database test owner testowner' as 'postgres' leaves test.public owned by postgres
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Re: BUG #13774: upgrade from 9.1 to 9.4 'succeeds' without enough disk space