Skip to content

RLS policies

Start with Read and write policies.

See Before you start.

See Policies for RBAC.

See Tenant tables: the fast path.

See Writes: check the row.

See App-wide or scoped checks.

See Other rules.

See Policies for both models.

See Write the models.

See Create the table and the data.

See Current-subject functions.

See Write the policies.

See Plan-time evaluation.

See Mistakes in names raise errors.

See Row attributes that only RLS sees.

See Conditions in policies.

See Clean up when a user is deleted.