Re: psql: \dg and groups for \du - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: psql: \dg and groups for \du
Date
Msg-id Pine.LNX.4.44.0312012358200.23890-100000@peter.localdomain
Whole thread Raw
In response to Re: psql: \dg and groups for \du  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: psql: \dg and groups for \du
List pgsql-patches
Note that it is planned to unify users and groups into a general "role"
entity, so this command is probably going to go away soon.


Bruce Momjian writes:

> Nice:
>
>     test=> create group test;
>     CREATE GROUP
>     test=> \dg
>     List of database groups
>      Group name | Group ID
>     ------------+----------
>      test       |      100
>     (1 row)
>
>     test=> alter group test add user postgres;
>     ALTER GROUP
>     test=> \du
>                       List of database users
>      User name | User ID |         Attributes         | Groups
>     -----------+---------+----------------------------+--------
>      postgres  |       1 | superuser, create database | {test}
>     (1 row)
>
> Patch applied, docs added, TODO updated.  Thanks.
>
> ---------------------------------------------------------------------------
>
> Markus Bertheau wrote:
> > Hi,
> >
> > attached is a patch that adds display of the groups a user belongs to to
> > \du and a \dg command to psql. It's against 7.4beta5.
> >
> > --
> > Markus Bertheau <twanger@bluetwanger.de>
>
> [ Attachment, skipping... ]
>
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 6: Have you searched our list archives?
> >
> >                http://archives.postgresql.org
>
>

--
Peter Eisentraut   peter_e@gmx.net


pgsql-patches by date:

Previous
From: Kurt Roeckx
Date:
Subject: Re: 7.4 shared memory error on 64-bit SPARC/Solaris 5.8
Next
From: Peter Eisentraut
Date:
Subject: Re: introduce "default_use_oids"