X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 5655C9DC9CC for ; Wed, 14 Dec 2005 08:37:59 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 53843-05-7 for ; Wed, 14 Dec 2005 08:37:58 -0400 (AST) X-Greylist: delayed 01:36:47.990749 by SQLgrey- Received: from svr2.postgresql.org (svr2.postgresql.org [65.19.161.25]) by postgresql.org (Postfix) with ESMTP id 697C19DCA04 for ; Wed, 14 Dec 2005 08:37:52 -0400 (AST) Received: from smarthost2.mail.uk.easynet.net (smarthost2.mail.uk.easynet.net [212.135.6.12]) by svr2.postgresql.org (Postfix) with ESMTP id B63F6F0B58 for ; Wed, 14 Dec 2005 11:01:05 +0000 (GMT) Received: from [82.111.62.66] (helo=[192.168.111.150]) by smarthost2.mail.uk.easynet.net with esmtp (Exim 4.10) id 1EmUNV-000HaZ-00 for pgsql-jdbc@postgresql.org; Wed, 14 Dec 2005 11:00:57 +0000 Message-ID: <439FFB60.9020806@rkcomputing.co.uk> Date: Wed, 14 Dec 2005 11:00:48 +0000 From: Rob Kirkbride User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Group Query Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200512/54 X-Sequence-Number: 14385 Hi, It's probably because I'm struggling with array queries but how can I get the (textual) list of groups allocated to the current user? I can get the current_user and extract the id out of pg_user, however I need to then match this to an element as part of a list in pg_group, this is the part I can't find how how to do. I'd like it as a ResultSet with each element with the textual group name Thanks for any help, Rob