pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rodrigo De León <rdeleonp@gmail.com>
To: Joshua_Kramer <josh@globalherald.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: SUPERUSER vs CREATEUSER causes foul 'code smell'
Date: Thu, 16 Aug 2007 10:41:00 -0500
Message-ID: <a55915760708160841g436b6c48uea8ac621af247ee@mail.gmail.com> (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>

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



view thread (5+ messages)  latest in thread

Message-ID: <a55915760708160841g436b6c48uea8ac621af247ee@mail.gmail.com>
Permalink:  ../a55915760708160841g436b6c48uea8ac621af247ee@mail.gmail.com/
Also on:    postgresql.org/message-id/a55915760708160841g436b6c48uea8ac621af247ee@mail.gmail.com

 · 

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: rdeleonp@gmail.com, josh@globalherald.net
  Subject: Re: SUPERUSER vs CREATEUSER causes foul 'code smell'
  In-Reply-To: <a55915760708160841g436b6c48uea8ac621af247ee@mail.gmail.com>

* 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