The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Postgres CDC -> Postgres Changes (#10649)
dngdbcafd687e29
diff --git a/apps/docs/components/Navigation/Navigation.constants.ts b/apps/docs/components/Navigation/Navigation.constants.tsindex 5bfb8aa40df..3c407085da2 100644--- a/apps/docs/components/Navigation/Navigation.constants.ts+++ b/apps/docs/components/Navigation/Navigation.constants.ts@@ -237,7 +237,7 @@ export const menuItems: NavMenu = {items: [{ name: 'Overview', url: '/guides/realtime', items: [] },{ name: 'Quickstart', url: '/guides/realtime/quickstart', items: [] },- { name: 'Postgres CDC', url: '/guides/realtime/postgres-cdc', items: [] },+ { name: 'Postgres Changes', url: '/guides/realtime/postgres-changes', items: [] },{ name: 'Rate Limits', url: '/guides/realtime/rate-limits', items: [] },],},diff --git a/apps/docs/pages/features.mdx b/apps/docs/pages/features.mdxindex 06152162e48..22a1dfd567a 100755--- a/apps/docs/pages/features.mdx+++ b/apps/docs/pages/features.mdx@@ -92,7 +92,7 @@ Fast GraphQL APIs using our custom Postgres GraphQL extension. [Docs](/docs/guid### Realtime Database changes-Receive your database changes through websockets. [Docs](/docs/guides/realtime/postgres-cdc).+Receive your database changes through websockets. [Docs](/docs/guides/realtime/postgres-changes).### User Broadcasting@@ -156,7 +156,7 @@ Both Postgres and the Supabase Platform are production-ready. Some tools we offe| Database | Point-in-Time Recovery | `alpha` || Database | Vault | `alpha` || Studio | | `GA` |-| Realtime | Postgres CDC | `GA` |+| Realtime | Postgres Changes | `GA` || Realtime | Broadcast | `beta` || Realtime | Presence | `beta` || Storage | Backend (S3) | `GA` |diff --git a/apps/docs/pages/guides/realtime.mdx b/apps/docs/pages/guides/realtime.mdxindex acf13a0f57b..e6b8ce7e283 100644--- a/apps/docs/pages/guides/realtime.mdx+++ b/apps/docs/pages/guides/realtime.mdx@@ -3,7 +3,7 @@ import Layout from '~/layouts/DefaultGuideLayout'export const meta = {id: 'realtime',title: 'Realtime',- description: 'Supabase Realtime with Broadcast, Presence, and Postgres CDC.',+ description: 'Supabase Realtime with Broadcast, Presence, and Postgres Changes.',sidebar_label: 'Overview',}@@ -11,11 +11,11 @@ Supabase provides a globally distributed cluster of [Realtime](https://github.co- [Broadcast](#broadcast): Send ephemeral messages from client to clients with low latency.- [Presence](#presence): Track and synchronize shared state between clients.-- [Postgres CDC](#postgres-cdc): Listen to Postgres database changes and send them to authorized clients.+- [Postgres Changes](#postgres-changes): Listen to Postgres database changes and send them to authorized clients.A [channel](https://hexdocs.pm/phoenix/channels.html) is the basic building block of Realtime and narrows the scope of data flow to subscribed clients. You can think of a channel as a chatroom where participants are able to see who's online and send and receive messages; similar to a Discord or Slack channel.-All clients can connect to a channel and take advantage of the built-in features, Broadcast and Presence, while extenstions, like Postgres CDC, must be enabled prior to use.+All clients can connect to a channel and take advantage of the built-in features, Broadcast and Presence, while extenstions, like Postgres Changes, must be enabled prior to use.## Broadcast@@ -37,9 +37,9 @@ Clients are free to come-and-go as they please, and as long as they are all subsThe neat thing about Presence is that if a client is suddenly disconnected (for example, they go offline), their state will be automatically removed from the shared state. If you've ever tried to build an “I'm online” feature which handles unexpected disconnects, you'll appreciate how useful this is.-## Postgres CDC+## Postgres Changes-Postgres Change Data Capture (CDC) enables you to listen to database changes and have them broadcast to authorized clients based on [Row Level Security (RLS)](/docs/guides/auth/row-level-security) policies.+Postgres Changes enable you to listen to database changes and have them broadcast to authorized clients based on [Row Level Security (RLS)](/docs/guides/auth/row-level-security) policies.This works by Realtime polling your database's logical replication slot for changes, passing those changes to the [apply_rls](https://github.com/supabase/walrus#reading-wal) SQL function to determine which clients have permission, and then using Broadcast to send those changes to clients.diff --git a/apps/docs/pages/guides/realtime/postgres-cdc.mdx b/apps/docs/pages/guides/realtime/postgres-changes.mdxsimilarity index 83%rename from apps/docs/pages/guides/realtime/postgres-cdc.mdxrename to apps/docs/pages/guides/realtime/postgres-changes.mdxindex c8d20133f3a..79a76e884b2 100644--- a/apps/docs/pages/guides/realtime/postgres-cdc.mdx+++ b/apps/docs/pages/guides/realtime/postgres-changes.mdx@@ -1,18 +1,18 @@import Layout from '~/layouts/DefaultGuideLayout'export const meta = {- id: 'postgres-cdc',- title: 'Postgres CDC',- description: "Getting started with Realtime's Postgres CDC feature",+ id: 'postgres-changes',+ title: 'Postgres Changes',+ description: "Getting started with Realtime's Postgres Changes feature",}-Realtime's Postgres Change Data Capture (CDC) feature listens for database changes and sends them to clients. Clients are required to subscribe with a JWT dictating which changes they are allowed to receive based on the database's [Row Level Security](/docs/guides/auth/row-level-security).+Realtime's Postgres Changes feature listens for database changes and sends them to clients. Clients are required to subscribe with a JWT dictating which changes they are allowed to receive based on the database's [Row Level Security](/docs/guides/auth/row-level-security).Anyone with access to a valid JWT signed with the project's JWT secret is able to listen to your database's changes, unless tables have [Row Level Security](/docs/guides/auth/row-level-security) enabled and policies in place.Clients can choose to receive `INSERT`, `UPDATE`, `DELETE`, or `*` (all) changes for all changes in a schema, a table in a schema, or a column's value in a table. Your clients should only listen to tables in the `public` schema and you must first enable the tables you want your clients to listen to.-Postgres CDC works out of the box for tables in the `public` schema. You can listen to tables in your private schemas by granting table `SELECT` permissions to the database role found in your access token. You can run a query similar to the following:+Postgres Changes works out of the box for tables in the `public` schema. You can listen to tables in your private schemas by granting table `SELECT` permissions to the database role found in your access token. You can run a query similar to the following:```sqlGRANT SELECT ON "private_schema"."table" TO authenticated;diff --git a/apps/docs/pages/guides/realtime/quickstart.mdx b/apps/docs/pages/guides/realtime/quickstart.mdxindex 02bc5b9177b..5d384d5f874 100644--- a/apps/docs/pages/guides/realtime/quickstart.mdx+++ b/apps/docs/pages/guides/realtime/quickstart.mdx@@ -7,7 +7,7 @@ export const meta = {sidebar_label: 'Quickstart',}-Learn how to build [multiplayer.dev](https://multiplayer.dev), a collaborative app that demonstrates Broadcast, Presence, and Postgres CDC using [Realtime](/docs/guides/realtime).+Learn how to build [multiplayer.dev](https://multiplayer.dev), a collaborative app that demonstrates Broadcast, Presence, and Postgres Changes using [Realtime](/docs/guides/realtime).<div className="video-container"><iframe@@ -185,7 +185,7 @@ If a channel is set up without a presence key, the server generates a random UUI## Insert and Receive Persisted Messages-[Postgres Change Data Capture (CDC)](/docs/guides/realtime#postgres-cdc) enables your client to insert, update, or delete database records and send the changes to clients. Create a `messages` table to keep track of messages created by users in specific rooms:+[Postgres Changes](/docs/guides/realtime#postgres-changes) enables your client to insert, update, or delete database records and send the changes to clients. Create a `messages` table to keep track of messages created by users in specific rooms:```sqlcreate table messages (diff --git a/apps/docs/pages/index.mdx b/apps/docs/pages/index.mdxindex 0e365acd82d..bb2537b2a48 100644--- a/apps/docs/pages/index.mdx+++ b/apps/docs/pages/index.mdx@@ -56,7 +56,7 @@ You can use it completely, or just the features you need.className="card"to={'/guides/realtime'}title={'Realtime'}- description={'Build with Broadcast, Presence, and Postgres CDC.'}+ description={'Build with Broadcast, Presence, and Postgres Changes.'}style={{ height: '100%' }}/></div>diff --git a/apps/docs/public/sitemap.xml b/apps/docs/public/sitemap.xmlindex 6d2c085106e..246445d80af 100644--- a/apps/docs/public/sitemap.xml+++ b/apps/docs/public/sitemap.xml@@ -799,7 +799,7 @@</url><url>- <loc>https://supabase.com/docs/guides/realtime/postgres-cdc</loc>+ <loc>https://supabase.com/docs/guides/realtime/postgres-changes</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>diff --git a/apps/www/data/Pricing.json b/apps/www/data/Pricing.jsonindex 33a37a692bd..0fb1bc779ef 100644--- a/apps/www/data/Pricing.json+++ b/apps/www/data/Pricing.json@@ -229,7 +229,7 @@"icon": "M15.042 21.672L13.684 16.6m0 0l-2.51 2.225.569-9.47 5.227 7.917-3.286-.672zM12 2.25V4.5m5.834.166l-1.591 1.591M20.25 10.5H18M7.757 14.743l-1.59 1.59M6 10.5H3.75m4.007-4.243l-1.59-1.59","features": [{- "title": "Change Data Capture (CDC)",+ "title": "Postgres Changes","tiers": {"free": true,"pro": true,diff --git a/apps/www/lib/redirects.js b/apps/www/lib/redirects.jsindex ef43ecd11af..9a6c2e5e87e 100644--- a/apps/www/lib/redirects.js+++ b/apps/www/lib/redirects.js@@ -1320,8 +1320,8 @@ module.exports = [},{permanent: true,- source: '/docs/guides/realtime/postgres-changes',- destination: '/docs/guides/realtime/postgres-cdc',+ source: '/docs/guides/realtime/postgres-cdc',+ destination: '/docs/guides/realtime/postgres-changes',},{permanent: true,diff --git a/apps/www/pages/realtime/Realtime.tsx b/apps/www/pages/realtime/Realtime.tsxindex 2a448489ba0..cc062d0bde4 100644--- a/apps/www/pages/realtime/Realtime.tsx+++ b/apps/www/pages/realtime/Realtime.tsx@@ -144,7 +144,7 @@ function RealtimePage() {Listen to changes in the Database inserts, updates, and deletes and other changes.</p><div className="not-prose mt-3">- <Link passHref href="/docs/guides/realtime/postgres-cdc">+ <Link passHref href="/docs/guides/realtime/postgres-changes"><Button as="a" type="default">View docs</Button>