\du in psql patch - Mailing list pgsql-patches

From Alex Perel
Subject \du in psql patch
Date
Msg-id Pine.BSF.4.21.0101051400540.57435-200000@wintermute.verticalscope.com
Whole thread Raw
List pgsql-patches
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/

Attachment

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: [GENERAL] Pb importing data in v. 7.0.3
Next
From: Ian Lance Taylor
Date:
Subject: Re: [HACKERS] Recursion and SPI