Re: SUPERUSER vs CREATEUSER causes foul 'code smell'

Поиск
Список
Период
Сортировка
От Rodrigo De León
Тема Re: SUPERUSER vs CREATEUSER causes foul 'code smell'
Дата
Msg-id a55915760708160841g436b6c48uea8ac621af247ee@mail.gmail.com
обсуждение исходный текст
Ответ на SUPERUSER vs CREATEUSER causes foul 'code smell'  (Joshua_Kramer <josh@globalherald.net>)
Ответы Re: SUPERUSER vs CREATEUSER causes foul 'code smell'  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
On 8/16/07, Joshua_Kramer <josh@globalherald.net> wrote:
> In the pg_users view - is there a way to differentiate between a role with
> SUPERUSER priveleges, and a user who merely has the CREATEUSER flag?

select * from pg_roles;

> If I want to create a role who can create other roles, but not have other
> SUPERUSER priveleges - how can I do that?

create role foo createrole login password 'foo';

See:
http://www.postgresql.org/docs/8.2/static/sql-createrole.html


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

Предыдущее
От: Michael Glaesemann
Дата:
Сообщение: Re: SUPERUSER vs CREATEUSER causes foul 'code smell'
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: SUPERUSER vs CREATEUSER causes foul 'code smell'