Re: SUPERUSER vs CREATEUSER causes foul 'code smell'

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Cc: Joshua_Kramer <josh(at)globalherald(dot)net>
Subject: Re: SUPERUSER vs CREATEUSER causes foul 'code smell'
Date: 2007-08-16 15:47:41
Message-ID: 200708161747.41596.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Am Donnerstag, 16. August 2007 17:36 schrieb Joshua_Kramer:
> 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?

No, because they are the same.

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

See CREATEROLE privilege.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2007-08-16 16:43:47 Re: SUPERUSER vs CREATEUSER causes foul 'code smell'
Previous Message Rodrigo De León 2007-08-16 15:41:00 Re: SUPERUSER vs CREATEUSER causes foul 'code smell'