Re: \du in psql patchp

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Alex Perel <aperel(at)verticalscope(dot)com>
Cc: <pgsql-patches(at)postgresql(dot)org>
Subject: Re: \du in psql patchp
Date: 2001-01-08 18:21:23
Message-ID: Pine.LNX.4.30.0101081919150.760-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Alex Perel writes:

> I quickly put together a patch to psql that allows one to view current
> system users. The code is very simple, but it seems to work.
>
> The usage is as follows:
>
> database=# \du [username]

Hi, we're currently in beta, but this one seems reasonable to add in 7.2.

> I apologize in advance for my lack of C skills, and I will gladly
> accept any criticism or advice. I'm hoping I can figure out a way
> to write an equivalent for groups, once I determine how to
> get around the grolist integer[] column in pg_group.

I think the pg_group table will be redesigned in 7.2 so it can be queried
better.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Alex Perel 2001-01-08 21:00:20 Re: \du in psql patchp
Previous Message Robert B. Easter 2001-01-08 14:01:24 sql.sgml patch 2 (use this one instead of the first one I sent)