Re: psql: \dg and groups for \du

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Markus Bertheau <twanger(at)bluetwanger(dot)de>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: psql: \dg and groups for \du
Date: 2003-12-01 22:21:39
Message-ID: 200312012221.hB1MLdw10454@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


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(at)bluetwanger(dot)de>

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-12-01 22:23:12 Re: Win32 patch for Makefile.shlib
Previous Message Tom Lane 2003-12-01 22:19:17 Re: 7.4 shared memory error on 64-bit SPARC/Solaris 5.8