Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Merge branch 'master' into docs/database-api

dannykng4608bc981f5c
diff --cc apps/docs/public/sitemap.xml
index 76f95fcd07d,3e833c6253e..90cd255fc9c
--- a/apps/docs/public/sitemap.xml
+++ b/apps/docs/public/sitemap.xml
@@@ -19,7 -19,7 +19,7 @@@
</url>
<url>
- <loc>https://supabase.com/docs/support</loc>
- <loc>https://supabase.com/docs/guides/api</loc>
++ <loc>https://supabase.com/docs/guides/database/api</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
diff --cc spec/supabase_js_v2.yml
index cc0c9e8ad74,64eef6a0067..8f88b48e852
--- a/spec/supabase_js_v2.yml
+++ b/spec/supabase_js_v2.yml
@@@ -3991,11 -3991,10 +3991,10 @@@ functions
title: on().subscribe()
$ref: '@supabase/realtime-js.RealtimeChannel.on'
notes: |
- - Realtime is disabled by default for new Projects for better database performance and security. You can turn it on by [managing replication](/docs/guides/database/api#managing-realtime).
- - Row level security is not applied to delete statements.
- - If you want to receive the "previous" data for updates and deletes, you will need to set `REPLICA IDENTITY` to `FULL`, like this: `ALTER TABLE your_table REPLICA IDENTITY FULL;`
- - When a delete occurs, the contents of old_record will be broadcast to all subscribers to that table so ensure that each table's replica identity only contains information that is safe to expose publicly.
- - The channel name must exactly match the schema/table/filter you want to listen to separated by colons. See below examples for additional context.
+ - By default, Broadcast and Presence are enabled for all projects.
- - By default, listening to database changes is disabled for new projects due to database performance and security concerns. You can turn it on by managing Realtime's [replication](/docs/guides/api#realtime-api-overview).
++ - By default, listening to database changes is disabled for new projects due to database performance and security concerns. You can turn it on by managing Realtime's [replication](/docs/guides/database/api#realtime-api-overview).
+ - You can receive the "previous" data for updates and deletes by setting the table's `REPLICA IDENTITY` to `FULL` (e.g., `ALTER TABLE your_table REPLICA IDENTITY FULL;`).
+ - Row level security is not applied to delete statements. When RLS is enabled and replica identity is set to full, only the primary key is sent to clients.
examples:
- id: listen-to-broadcast
name: Listen to broadcast messages