Is there an opposite to pg_get_userbyid() ?

Поиск
Список
Период
Сортировка
От Andreas
Тема Is there an opposite to pg_get_userbyid() ?
Дата
Msg-id 416EBA7E.7000409@gmx.net
обсуждение исходный текст
Ответы Re: Is there an opposite to pg_get_userbyid() ?
Список pgsql-general
Hi,
I'd like to store who changed records on some tables.
I'd prefer not to store the username but rather his/her ID.
Will I allways have to run
select usesysid from pg_user where usename=session_user;
or is there a complement to pg_get_userbyid()  ?

Can I have this as a default-value for a  created_by  integer-collumn ?

В списке pgsql-general по дате отправления:

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Need some advice on appropriate PL strategy... ["solved/thanks"]
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: creating audit tables