plpgsql: filter new value's array field - Supabase