todo: comment field for pg users and groups - Mailing list pgsql-hackers

From Fabien COELHO
Subject todo: comment field for pg users and groups
Date
Msg-id Pine.LNX.4.61.0409221252390.17756@sablons.cri.ensmp.fr
Whole thread Raw
Responses Re: todo: comment field for pg users and groups
List pgsql-hackers
Dear developers,

As I'm managing accounts for students... I noticed that there does not 
seem to be a proper way to keep a comment about a postgresql user account, 
such as the full name of the student or its email, that I could see with 
\du or some system query. My solution is to keep the "mapping" somewhere 
else, but having that in the database directly, just like the gecos field 
in a unix password file, would help managing the stuff.

Thus I would suggest to add one new text field in pg_group and pg_shadow 
for this purpose, that could be initialized with something like:
    CREATE USER calvin COMMENT 'Calvin <calvin@comics.org>';

Alternatively, it could be managed with "COMMENT ON ..."? Well, users or 
groups are not really database objects... so it does not really fit.

If there is some kind of agreement about this, maybe it could be added to 
the todo list for 8.1 (or later;-)?

Have a nice day,

-- 
Fabien.


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Companies, Version 8.0 release
Next
From: Laszlo Hornyak
Date:
Subject: Re: elog in 7.4