User/Groups - Mailing list pgsql-sql

From Michael Fork
Subject User/Groups
Date
Msg-id Pine.BSI.4.21.0004031714001.23790-100000@glass.toledolink.com
Whole thread Raw
Responses Re: User/Groups  ("tjk@tksoft.com" <tjk@tksoft.com>)
Re: User/Groups  (Peter Eisentraut <e99re41@DoCS.UU.SE>)
Re: User/Groups  (Karel Zak <zakkr@zf.jcu.cz>)
List pgsql-sql
I am trying to populate a select box on a form with all users in the group
with the sysid of 1 using the following query:

SELECT usename FROM pg_user, pg_group WHERE pg_user.usesysid IN 
pg_group.grolist AND pg_group.grosysid = 1;

however, everytime I run it I recieve the following error:

ERROR:  parser: parse error at or near "pg_group"

which leads me to belive that the IN operator is not correct, is there
another one that I should be using?  Thanks in advance.

Michael Fork - CCNA - MCP - A+
Network Support - Toledo Internet Access - Toledo Ohio



pgsql-sql by date:

Previous
From: wieck@debis.com (Jan Wieck)
Date:
Subject: Re: Novice trouble with plpgsql
Next
From: Tom Lane
Date:
Subject: Re: Hash Indexes. (Was: planner complaints)