supabase Supabase RLS using Functions - Security Definers Are you trying to create a new RLS policy using a Postgres function on Supabase? Don't forget to add SECURITY DEFINER to your SQL!!