Re: [HACKERS] "CURRENT_ROLE" is not documented

Поиск
Список
Период
Сортировка
От Fabien COELHO
Тема Re: [HACKERS] "CURRENT_ROLE" is not documented
Дата
Msg-id alpine.DEB.2.20.1705062110160.3896@lancre
обсуждение исходный текст
Ответ на Re: [HACKERS] "CURRENT_ROLE" is not documented  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
>      functions with the attribute <literal>SECURITY DEFINER</literal>.
>      In Unix parlance, the session user is the <quote>real user</quote> and
>      the current user is the <quote>effective user</quote>.
> +     <function>current_role</function> and <function>user</function> are
> +     synonyms for <function>current_user</function>.  (The SQL standard draws
> +     a distinction between <function>current_role</function>
> +     and <function>current_user</function>, but <productname>PostgreSQL</>
> +     does not, since it unifies users and roles into a single kind of entity.)

Looks simple and good to me. Thanks for the wording!

-- 
Fabien.



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

Предыдущее
От: Noah Misch
Дата:
Сообщение: Re: [HACKERS] [BUGS] Concurrent ALTER SEQUENCE RESTART Regression
Следующее
От: Andrew Dunstan
Дата:
Сообщение: [HACKERS] MSVC odd TAP test problem