From: Peter Eisentraut <e99re41@DoCS.UU.SE>
To: Michael Fork <mfork@toledolink.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: User/Groups
Date: Tue, 4 Apr 2000 12:25:10 +0200 (MET DST)
Message-ID: <Pine.GSO.4.02A.10004041224190.6042-100000@Utter.DoCS.UU.SE> (raw)
In-Reply-To: <Pine.BSI.4.21.0004031714001.23790-100000@glass.toledolink.com>
Somewhere in contrib/ there is some array walking code which is what you
want. I'm not thoroughly familiar with it, though.
On Mon, 3 Apr 2000, Michael Fork wrote:
> 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.
--
Peter Eisentraut Sernanders väg 10:115
peter_e@gmx.net 75262 Uppsala
http://yi.org/peter-e/ Sweden
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: e99re41@DoCS.UU.SE, mfork@toledolink.com
Subject: Re: User/Groups
In-Reply-To: <Pine.GSO.4.02A.10004041224190.6042-100000@Utter.DoCS.UU.SE>
References: <Pine.BSI.4.21.0004031714001.23790-100000@glass.toledolink.com> <Pine.GSO.4.02A.10004041224190.6042-100000@Utter.DoCS.UU.SE>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox