Re: \du in psql patchp - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: \du in psql patchp
Date
Msg-id 200101091409.JAA01440@candle.pha.pa.us
Whole thread Raw
In response to \du in psql patchp  (Alex Perel <aperel@verticalscope.com>)
List pgsql-patches
I will keep it for 7.2.

> Hi everyone,
>
> 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]
>
> 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.
>
> Please take a look at the patch and see if it's worth anything.
>
> Thanks
>
> Alex
>
>
>       Alex G. Perel  -=-  AP5081
> veers@disturbed.net  -=-  aperel@verticalscope.com
>                play  -=-  work
>
> Disturbed Networks - Powered exclusively by FreeBSD
> == The Power to Serve -=- http://www.freebsd.org/
Content-Description:

[ Attachment, skipping... ]


--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-patches by date:

Previous
From: "Robert B. Easter"
Date:
Subject: sql.sgml take 4
Next
From: Bruce Momjian
Date:
Subject: Re: Re: [HACKERS] Recursion and SPI