© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
18 replies
Smardrengr

Trigger not working or function not firing—RLS?

So I have this function that, when a
player
player
joins a game, the
players_conf
players_conf
(confirmed) column in the
games
games
record updates to reflect all players who have joined. But... it's not happening. And I'm not sure why. It was working before, but not anymore. Any ideas? Not seeing any errors client-side—like, the player record is being created...
 begin
update games set players_conf = (select sum(players.num) AS num from players where players.game_id = NEW.game_id group by players.game_id) where games.id = NEW.game_id;
return NEW;
end;
 begin
update games set players_conf = (select sum(players.num) AS num from players where players.game_id = NEW.game_id group by players.game_id) where games.id = NEW.game_id;
return NEW;
end;
Screen_Shot_2022-11-23_at_10.52.17_AM.png
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

RLS not working
SupabaseSSupabase / help-and-questions
3mo ago
RLS and trigger functions
SupabaseSSupabase / help-and-questions
4y ago
Trigger Function
SupabaseSSupabase / help-and-questions
4y ago
Storage RLS Template not working
SupabaseSSupabase / help-and-questions
13mo ago