Re: [PATCHES] Users/Groups -> Roles

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCHES] Users/Groups -> Roles
Date: 2005-06-30 15:16:11
Message-ID: 20050630151611.GF24207@ns.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

* Tom Lane (tgl(at)sss(dot)pgh(dot)pa(dot)us) wrote:
> Stephen Frost <sfrost(at)snowman(dot)net> writes:
> > Tom, if you're watching, are you working on this? I can probably spend
> > some time today on it, if that'd be helpful.
>
> I am not; I was hoping you'd deal with SET ROLE. Is it really much
> different from SET SESSION AUTHORIZATION?

No, it's not, but it's going to need to be done carefully to make sure
GetUserId() returns the correct thing at the correct time and that the
other GetSessionUserId() calls are only used where they should be and
that they return the correct information too.

I'll work on SET ROLE and the associated CURRENT_* functions and
information_schema today and tommorow.

> > I'm pretty sure others have been asking about per-catalog users and if
> > we're going to accept that per-catalog roles makes sense I'd really
> > think per-catalog users would too.
>
> We really can't do this. Especially not 3 days before feature freeze.

Right, I wasn't expecting that to be done in this round. It's something
people have asked for though and so might be something to consider for
8.2. I'm hoping your work on CREATEROLE will stem some of that demand
for per-catalog users/roles actually. I've been trying to think what
else per-catalog users/roles would get us besides a segmented namespace.
I think one big issue is that we don't have a 'usage' database check
beyond pg_hba and so any user could get the schema definitions for any
database, which kind of sucks. Is that maybe something we could try to
address for 8.1?

Thanks,

Stephen

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2005-06-30 15:20:19 Re: Backend working directories and absolute file paths
Previous Message falcon 2005-06-30 15:13:59 Re: contrib/rtree_gist into core system?

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2005-06-30 15:31:48 Re: [PATCHES] Users/Groups -> Roles
Previous Message Tom Lane 2005-06-30 15:09:17 Re: [PATCHES] Users/Groups -> Roles