From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
Cc: | Joe Conway <mail(at)joeconway(dot)com> |
Subject: | Re: Missing array support |
Date: | 2003-06-28 20:48:49 |
Message-ID: | Pine.LNX.4.44.0306282214060.2178-100000@peter.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
I wrote:
> * Using an array as a table source using UNNEST, something like:
>
> select * from unnest(test.b);
Btw., it would be really nice if some limited form of this could get done,
so I could finish the information schema views pertaining to group
privileges. I'd just need a way to find out what users are in what
groups. If unnest() would work for locally constant arguments, I think it
could be done like
SELECT g.groname
FROM pg_user u, pg_group g
WHERE u.usesysid IN (SELECT * FROM UNNEST((SELECT grolist FROM pg_group WHERE grosysid = g.grosysid)))
AND u.usename = current_user;
Or is there some other way to do this now?
--
Peter Eisentraut peter_e(at)gmx(dot)net
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2003-06-28 20:54:21 | Re: Documentation is building again |
Previous Message | Tom Lane | 2003-06-28 18:49:11 | Re: Documentation is building again |
From | Date | Subject | |
---|---|---|---|
Next Message | Joe Conway | 2003-06-28 21:11:46 | Re: Missing array support |
Previous Message | Peter Eisentraut | 2003-06-28 18:23:23 | Re: [PATCHES] .pot files are unavailable (?) |