Re: AW: [HACKERS] Re: PostgreSQL reference manual - Mailing list pgsql-hackers

From Jose' Soares Da Silva
Subject Re: AW: [HACKERS] Re: PostgreSQL reference manual
Date
Msg-id Pine.LNX.3.96.980324104124.1525E-100000@proxy.bazzanese.com
Whole thread Raw
In response to AW: [HACKERS] Re: PostgreSQL reference manual  (Zeugswetter Andreas <andreas.zeugswetter@telecom.at>)
List pgsql-hackers
On Mon, 23 Mar 1998, Zeugswetter Andreas wrote:

> > > > I have another question about GRANT/REVOKE:
> > > >
> > > >       grant <privilege[,privilege,...]>
> > > >            on <rel1>[,...<reln>]
> > > >            to [public | GROUP <group> | <username>]
> > > >                         ^^^^^^^^^^^^^
> > > > I don't know how to create a GROUP ?
> > >
> > > I believe that you use "CREATE USER groupname", and then can assign
> > > privileges to that pseudo-user/group, and then add users to that
> > > group. Have you tried that?
> > postgres=> create user grupo;
> > CREATE USER
> > postgres=> grant all on tmp to grupo;
> > CHANGE
> > create user joe in group grupo;
> > CREATE USER
> > postgres=> grant select on tmp to group grupo;
> > ERROR:  non-existent group "grupo"
>
> Can someone tell us how "groups" work? I'm not finding enough clues just
> by looking in the parser, and haven't stumbled across it in the docs...
>
> Once a group is manually created with insert into pg_group values ...
> it can be used by the create user, alter user and grant to group syntax.
> A create group <groupname> is still missing in the grammar,
> it would simply need to do the insert. Groups are very helpful with
> many users that all need similar grants. You grant rights to the group
> and then grant groups to users. The ANSI92 naming is "role",
> if we enhance the group stuff maybe it would be good to convert to the
> "role" naming of group code, althougth I like "group" more.
>
I created a group as Andreas said but now psql \z doesn't work anymore
It give me always a segmentation fault ... what's wrong...

postgres=> INSERT INTO pg_group VALUES ('tutti',200);
INSERT 318273 1

postgres=> CREATE USER jose IN GROUP tutti;
CREATE USER
SELECT * FROM pg_group;

groname|grosysid|grolist
-------+--------+-------
tutti  |     200|
(1 row)

postgres=> GRANT ALL ON temp TO GROUP tutti;
CHANGE

postgres=> \z
$ Segmentation fault
                                               jose'


pgsql-hackers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: AW: [HACKERS] Re: PostgreSQL reference manual
Next
From: "Jose' Soares Da Silva"
Date:
Subject: Re: [DOCS] Re: [HACKERS] PostgreSQL Reference Guide