Postgres Row Level Security

Designing Postgres Row-Level Security (RLS) policies for multi-tenant authorization, especially in Supabase / PostgREST stacks — `CREATE POLICY` syntax, USING vs WITH CHECK, PERMISSIVE/RESTRICTIVE merge semantics, the `(SELECT auth.uid())` performance pattern that turns 171ms scans into <1ms, indexes still required, role-based bypass via BYPASSRLS, security-definer escape hatches. Grounded in postgresql.org, Supabase docs, and Gary Austin's RLS-Performance benchmarks.

curiositech Updated 10 repo stars

File contents

curiositech/windags-skills/tree/main/skills/postgres-row-level-security commit 975bb38cf3

Frequently asked questions

npx skillmds@latest add curiositech/postgres-row-level-security