Re: [BUGS] Database/Table Owner Question

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: [BUGS] Database/Table Owner Question
Дата
Msg-id 49A6BBBE.EE98.0025.0@wicourts.gov
обсуждение исходный текст
Список pgsql-general
>>> <Michael.L.Blume@frb.gov> wrote:
> We have a lot of test databases with multiple db_owners, but very few

> superusers, and table_owners switch all the time.

A quick, untested idea:

Create a table_owner role.

Create your users with NOINHERIT and GRANT table_owner to them as
appropriate.

REVOKE CREATE ON SCHEMA public FROM public.

GRANT CREATE ON SCHEMA PUBLIC TO table_owner.

A user would need to SET ROLE table_owner to create a table.
RESET ROLE would put them back to normal.

Just a thought....

-Kevin

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

Предыдущее
От: Torsten Bronger
Дата:
Сообщение: Re: Getting time-dependent load statistics
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Connection refused (0x0000274D/10061).