RLS policies
Start with Read and write policies.
Before you start
Section titled “Before you start”See Before you start.
Policies for RBAC
Section titled “Policies for RBAC”See Policies for RBAC.
Tenant tables: the fast path
Section titled “Tenant tables: the fast path”See Tenant tables: the fast path.
Writes: check the row
Section titled “Writes: check the row”App-wide or scoped checks
Section titled “App-wide or scoped checks”See App-wide or scoped checks.
Other rules
Section titled “Other rules”See Other rules.
Policies for both models
Section titled “Policies for both models”Write the models
Section titled “Write the models”See Write the models.
Create the table and the data
Section titled “Create the table and the data”See Create the table and the data.
Current-subject functions
Section titled “Current-subject functions”See Current-subject functions.
Write the policies
Section titled “Write the policies”See Write the policies.
Plan-time evaluation
Section titled “Plan-time evaluation”See Plan-time evaluation.
Mistakes in names raise errors
Section titled “Mistakes in names raise errors”See Mistakes in names raise errors.
Row attributes that only RLS sees
Section titled “Row attributes that only RLS sees”See Row attributes that only RLS sees.