~/talk

Hitchhiker's Guide to Row-Level Security in Citus

Talkat POSETTE: An Event for Postgres 2025 · 2025-06-10..06-12· [databases]
slides:none on file

Shows how Postgres RLS behaves in real Citus clusters: enabling RLS, FORCE ROW LEVEL SECURITY to stop owner bypass, and that superusers or roles with bypass can ignore policies. Demonstrates two practical patterns — role-based policies (one DB user per tenant) and SET LOCAL-based policies (my_app.company_id per transaction) — with a live demo that works but exposes a foreign-key side channel (inserts reveal hidden rows) and warns Citus <13.1 doesn't propagate SET LOCAL to all nodes.

AI-written summary · about

  1. 0:00Start
  2. 0:36Introduction - Row Level Security(RLS) in PostgreSQL & Citus
  3. 3:26Defining Row Level Security Policies
  4. 8:10Sharding with Citus - Elastic Clusters on Azure Database for PostgreSQL
  5. 12:30Row Level Security with Citus
  6. 16:26DEMO - Row Level Security Setup & Policies
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.