Current Session Functions

This section contains the reference documentation for the Current Session functions built into Splice Machine SQL:

Function Name Description
CURRENT_ROLE Returns the authorization identifier of the current role.
CURRENT SCHEMA Returns the schema name used to qualify unqualified database object references.
CURRENT_USER Depending on context, returns the authorization identifier of either the user who created the SQL session or the owner of the schema.
SESSION_USER Depending on context, returns the authorization identifier of either the user who created the SQL session or the owner of the schema.
USER Depending on context, returns the authorization identifier of either the user who created the SQL session or the owner of the schema.