~/talk

Row Level Security Explained

Talkat PGConf NYC 2021 · 2021-12-02..12-03· [databases, security]
links:none on file
slides:none on file

Explains how PostgreSQL implements Row-Level Security: policies become WHERE filters during the query rewrite phase, using separate using and with check expressions, and default to deny when enabled. Covers performance traps—non leakproof functions block index pushdown (casts commonly hurt), functions run with the querier unless marked security definer, and tools like PG Audit and row_security GUC for dumps are discussed. Includes a concrete passwd-file example and actionable policy syntax.

AI-written summary · about

  1. 0:00Start
  2. 6:38Policies and permissions
  3. 8:35Leakproof functions
  4. 14:05Enabling Row Level Security
  5. 22:02CREATE POLICY FOR SELECT
  6. 29:41POLICY vs. GRANT
  7. 40:26Unix Password File
~/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.