usernames of a group from SQL

From: Kis János Tamás <kjt(at)takarnet(dot)hu>
To: pgsql-sql(at)postgresql(dot)org
Subject: usernames of a group from SQL
Date: 2006-05-19 08:40:04
Message-ID: 200605191040.04885.kjt@takarnet.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

At the first time: I'm in newbie in SQL... I'm sorry!

My question is: How can I get the usernames of a group (for example
'osztatlan_users') from SQL?

I try it:

SELECT usename
FROM pg_user
WHERE usesysid IN (SELECT grolist FROM pg_group WHERE
groname='osztatlan_users')
ORDER BY pg_user;

But I get the next error message:

ERROR: operator does not exist: oid = oid[]
HINT: No operator matches the given name and argument type(s). You
may need to add explicit type casts.

I see, what is the problem, but what can I do...?

Thans,
kjt

McAfee SCM 4.1 által ellenőrizve!

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Achilleus Mantzios 2006-05-19 10:04:58 Re: usernames of a group from SQL
Previous Message Markus Schaber 2006-05-19 08:38:43 Re: Constraint question