Skip to content

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

docs(postgres changes): add sql method for adding tables (#37877)

Charisdb38e8ca632c
diff --git a/apps/docs/content/guides/realtime/postgres-changes.mdx b/apps/docs/content/guides/realtime/postgres-changes.mdx
index 395deda2828..3cdf5b5a1d6 100644
--- a/apps/docs/content/guides/realtime/postgres-changes.mdx
+++ b/apps/docs/content/guides/realtime/postgres-changes.mdx
@@ -91,8 +91,19 @@ In this example we'll set up a database table, secure it with Row Level Security
Go to your project's [Publications settings](https://supabase.com/dashboard/project/_/database/publications), and under `supabase_realtime`, toggle on the tables you want to listen to.
+ Alternatively, add tables to the `supabase_realtime` publication by running the given SQL:
+
</StepHikeCompact.Details>
+ <StepHikeCompact.Code>
+
+ ```sql
+ alter publication supabase_realtime
+ add table your_table_name;
+ ```
+
+ </StepHikeCompact.Code>
+
</StepHikeCompact.Step>
<StepHikeCompact.Step step={4}>