pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-sql@postgresql.org
Cc: Joshua_Kramer <josh@globalherald.net>
Subject: Re: SUPERUSER vs CREATEUSER causes foul 'code smell'
Date: Thu, 16 Aug 2007 17:47:41 +0200
Message-ID: <200708161747.41596.peter_e@gmx.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0708161134270.16729@home-av-server.home-av>
References: <Pine.LNX.4.64.0708161134270.16729@home-av-server.home-av>

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/



view thread (5+ messages)  latest in thread

Message-ID: <200708161747.41596.peter_e@gmx.net>
Permalink:  ../200708161747.41596.peter_e@gmx.net/
Also on:    postgresql.org/message-id/200708161747.41596.peter_e@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: peter_e@gmx.net, josh@globalherald.net
  Subject: Re: SUPERUSER vs CREATEUSER causes foul 'code smell'
  In-Reply-To: <200708161747.41596.peter_e@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox