mapping user name to group name

From: Matthew Phillips <mphillips(at)timing(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: mapping user name to group name
Date: 2003-03-10 17:47:33
Message-ID: 3E6CCFB5.6030403@timing.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hey guys... first time caller, long time listener.

Don't ask me why, but I would like a quick way to map a user name to the
group name that the user is part of. Using pg_user and pg_group makes
this a little tricky. You can obtain usesysid from pg_user, and then get
the groname from pg_group based on it. However each group has its own
usesysids within an array of integers. I have no clue how to search
within an array using a select statement.

Am I making it harder than it should be? Is there a sys table already
out there that is doing this mapping for me? How do I do this (with
minimal hastle)

thanks much
matthew

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Neil Conway 2003-03-10 18:04:54 Re: unlock Select for update
Previous Message jose antonio leo 2003-03-10 17:15:19 Re: unlock Select for update