pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Henshall, Stuart - WCP <SHenshall@westcountrypublications.co.uk>
To: 'Andy Ruhl' <acruhl@sdf.lonestar.org>
To: sreedhar <sreedhar@lucidindia.net>
Cc: PostgreSQL <pgsql-admin@postgresql.org>
Subject: Re: Where can I get Users and Roles information in PostgreSQL
Date: Tue, 5 Feb 2002 15:57:01 -0000
Message-ID: <E2870D8CE1CCD311BAF50008C71EDE8E01F747C7@MAIL_EXCHANGE> (raw)

Have a look at the system views pg_user and pg_group
- Stuart

> -----Original Message-----
> From: Andy Ruhl [mailto:acruhl@sdf.lonestar.org]
> Sent: 04 February 2002 13:33
> To: sreedhar
> Cc: PostgreSQL
> Subject: Re: Where can I get Users and Roles information in PostgreSQL
> 
> 
> On Mon, 4 Feb 2002, sreedhar wrote:
> 
> > Hi all,
> >
> > I am new bee to PostgreSQL. Where can I get Users and Roles 
> information in
> > PostgreSQL.
> >
> > eg : In SQL-SERVER we can get users information using 
> 'sysusers' table.
> >
> > advance thanks for helping,
> 
> I'm new too, so this may not be the best answer, but it's 
> useful anyway.
> 
> If you are a superuser (ie: you can create other users), try this:
> 
> select * from pg_shadow;
> 
> Warning: Passwords will be shown in plain text. If you don't 
> want anyone
> to see, make sure nobody is standing behind you!
> 
> Andy
> 
> --
> acruhl@sdf.lonestar.org
> SDF Public Access UNIX System - http://sdf.lonestar.org
> 
> 




view thread (3+ messages)

Message-ID: <E2870D8CE1CCD311BAF50008C71EDE8E01F747C7@MAIL_EXCHANGE>
Permalink:  ../E2870D8CE1CCD311BAF50008C71EDE8E01F747C7@MAIL_EXCHANGE/
Also on:    postgresql.org/message-id/E2870D8CE1CCD311BAF50008C71EDE8E01F747C7@MAIL_EXCHANGE

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: SHenshall@westcountrypublications.co.uk, acruhl@sdf.lonestar.org, sreedhar@lucidindia.net
  Subject: Re: Where can I get Users and Roles information in PostgreSQL
  In-Reply-To: <E2870D8CE1CCD311BAF50008C71EDE8E01F747C7@MAIL_EXCHANGE>
  References: <E2870D8CE1CCD311BAF50008C71EDE8E01F747C7@MAIL_EXCHANGE>

* 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