The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: correct the trigger function to make sense for the given example (#41079)
Filipe Cabaço0e861a24fc91
diff --git a/apps/docs/content/guides/realtime/subscribing-to-database-changes.mdx b/apps/docs/content/guides/realtime/subscribing-to-database-changes.mdxindex 0ac4f710a61..9984e94d6c2 100644--- a/apps/docs/content/guides/realtime/subscribing-to-database-changes.mdx+++ b/apps/docs/content/guides/realtime/subscribing-to-database-changes.mdx@@ -41,7 +41,7 @@ language plpgsqlas $$beginperform realtime.broadcast_changes(- 'topic:' || coalesce(NEW.topic, OLD.topic) ::text, -- topic - the topic to which we're broadcasting+ 'topic:' || coalesce(NEW.id, OLD.id) ::text, -- topic - the topic to which you're broadcasting where you can use the topic id to build the topic nameTG_OP, -- event - the event that triggered the functionTG_OP, -- operation - the operation that triggered the functionTG_TABLE_NAME, -- table - the table that caused the trigger