01Chapter 1: Why row-level security?This chapter assumes you know basic SQL (SELECT, INSERT, UPDATE, DELETE, and WHERE), can create tables in PostgreSQL, and understand roles and GRANT. You should have psql or another SQL client and a database where you can create roles.1 min read
02Chapter 2: One policy per commandThis chapter assumes you know basic SQL, can create tables and roles in PostgreSQL, and have already run ALTER TABLE ... ENABLE ROW LEVEL SECURITY on a table. Without any policies, an RLS-enabled table returns no rows to non-bypassing roles.2 min read
03Chapter 3: A complete multi-tenant isolation setupThis chapter assumes you know basic SQL, can create tables and indexes in PostgreSQL, understand roles and GRANT, and can use psql. The example stores invoices for many tenants in one table. Each row carries a tenant_id, and one policy filters every query.2 min read