> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sdf.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Session Functions

## `current_catalog`

Returns a character string that represents the current catalog name.

*Supported Signatures*

```sql theme={null}
function current_catalog() returns varchar
```

[🔗 Official Documentation](https://trino.io/docs/current/functions/session.html#current_catalog)

## `current_groups`

Returns the list of groups for the current user running the query.

*Supported Signatures*

```sql theme={null}
function current_groups() returns array<varchar>
```

*Note: current\_groups() is stable,  i.e. might return a
different value for a different query execution.*

[🔗 Official Documentation](https://trino.io/docs/current/functions/session.html#current_groups)

## `current_schema`

Returns a character string that represents the current unqualified schema name.

*Supported Signatures*

```sql theme={null}
function current_schema() returns varchar
```

[🔗 Official Documentation](https://trino.io/docs/current/functions/session.html#current_schema)

## `current_user`

Returns the current user running the query.

*Supported Signatures*

```sql theme={null}
function current_user() returns varchar
```

[🔗 Official Documentation](https://trino.io/docs/current/functions/session.html#current_user)
