Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

usernames of a group from 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!


Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group