Re: ALTER DATABASE ... RENAME: permission denied for superuser

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ALTER DATABASE ... RENAME: permission denied for superuser
Дата
Msg-id 15018.1110467708@sss.pgh.pa.us
обсуждение исходный текст
Ответ на ALTER DATABASE ... RENAME: permission denied for superuser  ("Alexander M. Pravking" <fduch@antar.bryansk.ru>)
Список pgsql-bugs
"Alexander M. Pravking" <fduch@antar.bryansk.ru> writes:
> Docs say: Only the database owner or a superuser can rename a database;
> non-superuser owners must also have the CREATEDB privilege.

> Looks like a superuser must have CREATEDB too:

Yeah, the test in RenameDatabase is only looking at createdb and not at
superuserness.  Seems like a bug to me --- or does anyone want to argue
that the code behavior is correct and the docs are wrong?

            regards, tom lane

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

Предыдущее
От: "Alexander M. Pravking"
Дата:
Сообщение: ALTER DATABASE ... RENAME: permission denied for superuser
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] We are not following the spec for HAVING without GROUP BY