Re: [PATCHES] Merge pg_shadow && pg_group -- UNTESTED

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Euler Taveira de Oliveira <eulerto(at)yahoo(dot)com(dot)br>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCHES] Merge pg_shadow && pg_group -- UNTESTED
Date: 2005-01-22 19:49:06
Message-ID: 20050122194906.GP10437@ns.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

* Euler Taveira de Oliveira (eulerto(at)yahoo(dot)com(dot)br) wrote:
> > Here's a proof-of-concept pretty much untested (it compiles) patch
> > against HEAD for review of the general approach I'm taking to
> > merging pg_shadow and pg_group. This is in order to support group
> > ownership and eventually roles.
>
> I have to disagree with your model. Roles are not so simple like you
> try to describe in your patch. I'm suposing this because your using
> role* in all of the 'pg_shadow'.

The particular name isn't really important- and don't take it to mean
very much...

> What's Role? A set of relations with their respective privileges and
> a set of users and/or roles.

That's a good question- I'm not really very familiar with roles. :) I'm
honestly more interested in group ownership...

> Advantages:
> 1. Don't require changing the actual catalog model. Just an increment.

I'm not sure what the value of this is..

> 2. Can't introduce too much overhead. Once roles are in another catalog
> table, we need to search it only if it's required.

ok.

> 3. All serious commercial databases have it. And of course, PostgreSQL
> community want it too. :-)

Well, yes, we want roles, we're discussing implementations though, and I
don't see this as an 'advantage' of your approach. :)

> Disadvantages:
> 1. Some overhead when checking for roles and dependent roles.

It was Tom's suggestion that pg_shadow and pg_group be merged to
guarntee unique in the 'id's, which needs to be there unless you want to
change pg_object (iirc? whatever table it is) to handle additional
information about what kind of 'id' it is (role, user or group).

Stephen

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2005-01-22 20:06:33 Re: Much Ado About COUNT(*)
Previous Message Jim Buttafuoco 2005-01-22 19:24:52 Re: pg_clog problem (PG version 7.4.5)

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2005-01-22 20:06:33 Re: Much Ado About COUNT(*)
Previous Message Euler Taveira de Oliveira 2005-01-22 18:52:05 Re: [PATCHES] Merge pg_shadow && pg_group -- UNTESTED