cluster · — policies · enforced after execution
Row-level security
A policy filters which rows a role can read. Predicates support
= != < <= > >=, IN (…),
IS [NOT] NULL, AND/OR/NOT, and CURRENT_USER.
| table | role | using | cmd | |
|---|---|---|---|---|
| loading… | ||||
rls · policy
New row-level policy
USING predicate
Examples:
tier = 'gold' · owner = CURRENT_USER · country IN ('IN','SG') · deleted_at IS NULL