Re: SUPERUSER vs CREATEUSER causes foul 'code smell'

From: Rodrigo De León <rdeleonp(at)gmail(dot)com>
To: Joshua_Kramer <josh(at)globalherald(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: SUPERUSER vs CREATEUSER causes foul 'code smell'
Date: 2007-08-16 15:41:00
Message-ID: a55915760708160841g436b6c48uea8ac621af247ee@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 8/16/07, Joshua_Kramer <josh(at)globalherald(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Eisentraut 2007-08-16 15:47:41 Re: SUPERUSER vs CREATEUSER causes foul 'code smell'
Previous Message Joshua_Kramer 2007-08-16 15:36:24 SUPERUSER vs CREATEUSER causes foul 'code smell'