todo: comment field for pg users and groups

Поиск
Список
Период
Сортировка
От Fabien COELHO
Тема todo: comment field for pg users and groups
Дата
Msg-id Pine.LNX.4.61.0409221252390.17756@sablons.cri.ensmp.fr
обсуждение исходный текст
Ответы Re: todo: comment field for pg users and groups  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Список 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 по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Companies, Version 8.0 release
Следующее
От: Laszlo Hornyak
Дата:
Сообщение: Re: elog in 7.4