| От | David Hartwig |
|---|---|
| Тема | Re: [SQL] Current User |
| Дата | |
| Msg-id | 364B589A.1400E1B5@insightdist.com обсуждение |
| Ответ на | Current User (Jorge Maturana <ateo@labsd.inf.utfsm.cl>) |
| Список | pgsql-sql |
select CURRENT_USER; -- or -- select usesysid from pg_user where usename = CURRENT_USER; Jorge Maturana wrote: > Hi, > > I want to have a table to manage a register of the modifications made to > several tables by a group of users, that table should contain the name of the > postgres user that made the modificaction, now, How can I get the name (or > the user id) of the current user logged in?,there are some "pg_currentuser" > table to make a select? > > I would thank any help. > > -- > Jorge Maturana Ortiz > Laboratorio de Sistemas Distribuidos - Departamento de Informatica > Universidad Tecnica Federico Santa Maria, Valparaiso - Chile > mailto:ateo@labsd.inf.utfsm.cl
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера