Re: [HACKERS] "CURRENT_ROLE" is not documented - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: [HACKERS] "CURRENT_ROLE" is not documented
Date
Msg-id alpine.DEB.2.20.1705062110160.3896@lancre
Whole thread Raw
In response to Re: [HACKERS] "CURRENT_ROLE" is not documented  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Noah Misch
Date:
Subject: Re: [HACKERS] [BUGS] Concurrent ALTER SEQUENCE RESTART Regression
Next
From: Andrew Dunstan
Date:
Subject: [HACKERS] MSVC odd TAP test problem