Databases · Middle · Question 42 of 75
What does Row-Level Security (RLS) in PostgreSQL do?
- ✓Correct answer: Filters which rows each role or user can see and change, using policies checked by the database
- 2Locks each row while it's being read
- 3Encrypts each row with its own key
Explanation
Services like Supabase rely on it: policies such as user_id = auth.uid() protect data even if a query forgets to filter.