| От | Michael Fuhr |
|---|---|
| Тема | Re: audit information |
| Дата | |
| Msg-id | 20050425153534.GA2107@winnie.fuhr.org обсуждение исходный текст |
| Ответ на | audit information ("Keith Worthington" <keithw@narrowpathinc.com>) |
| Ответы |
Re: audit information
Re: audit information |
| Список | pgsql-novice |
On Mon, Apr 25, 2005 at 10:41:09AM -0400, Keith Worthington wrote: > > Is there a way to obtain the postgres user id or must I store the output of > session_user in the tables? You could grab usesysid from pg_user: SELECT usesysid FROM pg_user WHERE usename = session_user; You can convert the user ID back to the name with pg_get_userbyid(): SELECT pg_get_userbyid(1); -- Michael Fuhr http://www.fuhr.org/~mfuhr/
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера