Re: granting right to create and delete just one database

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: granting right to create and delete just one database
Дата
Msg-id d6e35f82ffbb0129462aed594ee6286bf28c0125.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: granting right to create and delete just one database  (Chris Withers <chris@withers.org>)
Список pgsql-general
Chris Withers wrote:
> > > Is there any way to grant rights to a user such that they can drop and
> > > re-create only a single database?
> > No; what I'd do if I needed that is to create a SECURITY DEFINER function
> > that is owned by a user with the CREATEDB privilege.
>
> Thanks, that's a great idea! Is this pattern documented anywhere as a 
> complete finished thing?

I'm afraid that is left as an exercise to the reader.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: verify checksums / CREATE DATABASE
Следующее
От: guyren@relevantlogic.com
Дата:
Сообщение: Advice on setting cost for function