Re: [SQL] Current User

Поиск
Список
Период
Сортировка
От darcy@druid.net (D'Arcy J.M. Cain)
Тема Re: [SQL] Current User
Дата
Msg-id m0ze6qz-0000eRC@druid.net
обсуждение исходный текст
Ответ на Current User  (Jorge Maturana <ateo@labsd.inf.utfsm.cl>)
Список pgsql-sql
Thus spake Jorge Maturana
> 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?

Look at insert_username in contrib/spi.  Basically you create a trigger
on insert.

--
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 424 2871     (DoD#0082)    (eNTP)   |  what's for dinner.

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

Предыдущее
От: David Hartwig
Дата:
Сообщение: Re: [SQL] Current User
Следующее
От: "송기원"
Дата:
Сообщение: How to restarting postmaster ??