Re: Help with a query - Mailing list pgsql-general

From Klint Gore
Subject Re: Help with a query
Date
Msg-id 403E75D18D.853AKG@129.180.47.120
Whole thread Raw
In response to Help with a query  (Alexander Cohen <alex@toomuchspace.com>)
List pgsql-general
On Thu, 26 Feb 2004 16:47:10 -0500, Alexander Cohen <alex@toomuchspace.com> wrote:
> Im trying to get a list of all groups that a certain user is a member
> of. Can anyone help me with the sql to get that?

select groname
>from pg_group
where (select usesyside from pg_shadow where usename = 'postgres') =
any(grolist);

klint.

+---------------------------------------+-----------------+
: Klint Gore                            : "Non rhyming    :
: EMail   : kg@kgb.une.edu.au           :  slang - the    :
: Snail   : A.B.R.I.                    :  possibilities  :
: Mail      University of New England   :  are useless"   :
:           Armidale NSW 2351 Australia :     L.J.J.      :
: Fax     : +61 2 6772 5376             :                 :
+---------------------------------------+-----------------+

pgsql-general by date:

Previous
From: Brandon Craig Rhodes
Date:
Subject: Re: PostgreSQL on XFS experiences?
Next
From: Andrew Sullivan
Date:
Subject: Re: Postgres clustering?