Re: Role incompatibilities

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Role incompatibilities
Дата
Msg-id 29107.1154113296@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Role incompatibilities  ("Clark C. Evans" <cce@clarkevans.com>)
Список pgsql-hackers
"Clark C. Evans" <cce@clarkevans.com> writes:
> Sorry to ressurect this thread.  However, I've been playing with the new
> role system and I'd prefer to keep CURRENT_USER as the login user, and
> not making it a synonymn for CURRENT_ROLE.  In my application, I love the
> ability to "shed" privleges by "SET ROLE dataentry;".  However, I need
> CURRENT_USER to remain as 'clark' for audit trail triggers (recording
> that 'dataentry' changed a particular order is kinda useless).

Aren't you looking for SESSION_USER?
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: A couple remarks on TODO
Следующее
От: Chris Browne
Дата:
Сообщение: Re: The vacuum-ignore-vacuum patch