pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Aaron Bono <postgresql@aranya.com>
To: Rares Vernica <rvernica@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: show privileges
Date: Mon, 6 Nov 2006 17:01:06 -0600
Message-ID: <bf05e51c0611061501m637979e1g8ba614f6bfe6fe41@mail.gmail.com> (raw)
In-Reply-To: <eiek18$g8p$1@sea.gmane.org>
References: <eiek18$g8p$1@sea.gmane.org>

On 11/2/06, Rares Vernica <rvernica@gmail.com> wrote:
>
> Hi,
>
> How can I view the privileges that an user or a role has?
>
> Or what is the equivalent of "show privileges" from MySQL?



select * from pg_user;

Hey guys, this comes up every so often.  Could some kind of syntax be added,
at least to the psql tool, to get this kind of information.  It would be
really handy for administrators.  Also, if it were on the documentation
under the GRANT privileges section that would help immensely.  I always have
to hunt this down when I need it.

Thanks!

==================================================================
   Aaron Bono
   Aranya Software Technologies, Inc.
   http://www.aranya.com
   http://codeelixir.com
==================================================================

view thread (3+ messages)  latest in thread

Message-ID: <bf05e51c0611061501m637979e1g8ba614f6bfe6fe41@mail.gmail.com>
Permalink:  ../bf05e51c0611061501m637979e1g8ba614f6bfe6fe41@mail.gmail.com/
Also on:    postgresql.org/message-id/bf05e51c0611061501m637979e1g8ba614f6bfe6fe41@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: postgresql@aranya.com, rvernica@gmail.com
  Subject: Re: show privileges
  In-Reply-To: <bf05e51c0611061501m637979e1g8ba614f6bfe6fe41@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