Reference material for SESSION_USER function
Returns the name of the user running the current query.
TEXT
The following code example shows the effective privileges of the roles directly assigned to the user running the query:
Example
Dynamic security through a view which uses session_user()
.
Returns
user_name | … |
---|---|
alice | … |
Reference material for SESSION_USER function
Returns the name of the user running the current query.
TEXT
The following code example shows the effective privileges of the roles directly assigned to the user running the query:
Example
Dynamic security through a view which uses session_user()
.
Returns
user_name | … |
---|---|
alice | … |