Re: Group Query - Mailing list pgsql-jdbc

From Achilleus Mantzios
Subject Re: Group Query
Date
Msg-id Pine.LNX.4.44.0512141541050.16112-100000@matrix.gatewaynet.com
Whole thread Raw
In response to Group Query  (Rob Kirkbride <rob@rkcomputing.co.uk>)
Responses Re: Group Query  (Rob Kirkbride <rob@rkcomputing.co.uk>)
List pgsql-jdbc
O Rob Kirkbride έγραψε στις Dec 14, 2005 :

> 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,

st=con.preparedStatement(select groname from pg_group where ?=any(grolist));
st.setInt(1,uid);

maybe?
>
> Rob
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>

--
-Achilleus


pgsql-jdbc by date:

Previous
From: Rob Kirkbride
Date:
Subject: Group Query
Next
From: Rob Kirkbride
Date:
Subject: Re: Group Query