pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
About groups in postgres 2+ messages / 2 participants [nested] [flat]
* About groups in postgres @ 2002-02-21 20:08 Denis Chavez <dnchavez@gmx.net> 0 siblings, 1 reply; 2+ messages in thread From: Denis Chavez @ 2002-02-21 20:08 UTC (permalink / raw) To: pgsql-admin Hi! I've got a couple of questions about groups in postgres: 1) Is there any way of asking postgres the groups a user account belongs to? 2) Let's suppose I have a user account that belongs to several groups, how can I tell postgres that I want access the database but just with the priviledges of one of the groups? Thanks in advance and regards to all. Denis -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: About groups in postgres @ 2002-02-22 02:06 Sean Chittenden <sean@chittenden.org> parent: Denis Chavez <dnchavez@gmx.net> 0 siblings, 0 replies; 2+ messages in thread From: Sean Chittenden @ 2002-02-22 02:06 UTC (permalink / raw) To: Denis Chavez <dnchavez@gmx.net>; +Cc: pgsql-admin > 1) Is there any way of asking postgres the groups a user account > belongs to? You can figure this out, but I don't know of a nice clean way of doing it. Check out the pg_group table. There's got to be a 'value in array' type function that could make that an easy select. > 2) Let's suppose I have a user account that belongs to several > groups, how can I tell postgres that I want access the database but > just with the priviledges of one of the groups? You don't want the intersection of permissions? I'd create a new user account: I don't know that there's a way to rescind privs that have been granted to you. -sc -- Sean Chittenden ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-02-22 02:06 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2002-02-21 20:08 About groups in postgres Denis Chavez <dnchavez@gmx.net> 2002-02-22 02:06 ` Sean Chittenden <sean@chittenden.org>
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