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

# system.row_policies

> System table containing filters for one particular table, as well as a list of roles and/or users which should use this row policy.

## Description

Contains filters for one particular table, as well as a list of roles and/or users which should use this row policy.

## Columns

* `name` ([String](https://clickhouse.com/docs/reference/data-types/string.md)) — Name of a row policy.
* `short_name` ([String](https://clickhouse.com/docs/reference/data-types/string.md)) — Short name of a row policy. Names of row policies are compound, for example: myfilter ON mydb.mytable. Here 'myfilter ON mydb.mytable' is the name of the row policy, 'myfilter' is it's short name.
* `database` ([String](https://clickhouse.com/docs/reference/data-types/string.md)) — Database name.
* `table` ([String](https://clickhouse.com/docs/reference/data-types/string.md)) — Table name. Empty if policy for database.
* `id` ([UUID](https://clickhouse.com/docs/reference/data-types/uuid.md)) — Row policy ID.
* `storage` ([String](https://clickhouse.com/docs/reference/data-types/string.md)) — Name of the directory where the row policy is stored.
* `select_filter` ([Nullable(String)](https://clickhouse.com/docs/reference/data-types/nullable.md)) — Expression which is used for filtering in SELECT queries.
* `is_restrictive` ([UInt8](https://clickhouse.com/docs/reference/data-types/int-uint.md)) — Shows whether the row policy restricts access to rows. Value: • 0 — The row policy is defined with `AS PERMISSIVE` clause, • 1 — The row policy is defined with AS RESTRICTIVE clause.
* `apply_to_all` ([UInt8](https://clickhouse.com/docs/reference/data-types/int-uint.md)) — Shows that the row policies set for all roles and/or users.
* `apply_to_list` ([Array(String)](https://clickhouse.com/docs/reference/data-types/array.md)) — List of the roles and/or users to which the row policies is applied.
* `apply_to_except` ([Array(String)](https://clickhouse.com/docs/reference/data-types/array.md)) — The row policies is applied to all roles and/or users excepting of the listed ones.

## See Also

* [SHOW POLICIES](https://clickhouse.com/docs/reference/statements/show.md#show-policies)
