Share

Query to find tables without RLS in Supabase

Open · 3001 viewsasked by olu_backend

Run this in the SQL editor after every Lovable or Bolt session. Empty result = good.

Snippet
Copied 13 times
select schemaname, tablename
from pg_tables
where schemaname = 'public'
  and rowsecurity = false
order by tablename;
Comment
Ran it. Four tables. Four! noor_builds
Worth a second query for views. They skip RLS unless created with security_invoker = true. postgres_pete
Good catch, adding that. olu_backend

Activity