Received: from mailsrv.panservice.it (mailsrv.panservice.it [212.66.96.7]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eAAETQs23487 for ; Fri, 10 Nov 2000 09:29:26 -0500 (EST) (envelope-from jsilva@lynxtesoft.it) Received: from virgilio (vnp-001.dial.panservice.it [212.66.97.193]) by mailsrv.panservice.it (8.9.3/8.9.3) with SMTP id PAA20948 for ; Fri, 10 Nov 2000 15:27:27 +0100 Message-ID: <002e01c04b22$89e177c0$3d01a8c0@sede.lynxtesoft.it> From: "Jacopo Silva" To: Subject: is a user in a group? Date: Fri, 10 Nov 2000 15:28:10 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200011/69 X-Sequence-Number: 78 I need to find out a quick way to check which groups a user is member of. In the pg_group table each group row has an array of userids of the members of the group. At the moment I am selecting all the rows than searching in each array for the id of the user I am looking for. There should be something more elegant than this!!! There should be a system table which I can use to find the relation between user and groups. I would be very grateful to anyone who can help me:-). Bye, Jacopo