Hexret

Web Security · Authorization

Row-Level Security

Also known as: RLS

In PostgreSQL, Row-Level Security applies row policies to normal table reads and writes in addition to table grants. With RLS enabled, no applicable policy means default deny. Owners bypass policy by default unless FORCE ROW LEVEL SECURITY applies; superusers and BYPASSRLS roles bypass regardless. Keep policy-changing ownership separate from the application query role.

Where you practice it

Related terms