Closed
Description
Edit: this requires PostgreSQL v17, its deployment is in progress.
Supabase currently supports:
CREATE PUBLICATION my_publication FOR ALL TABLES;
but does not support:
CREATE SUBSCRIPTION my_subscription CONNECTION '<connection_string>' PUBLICATION my_publication;
The error given is:
ERROR: 42501: must be superuser to create subscriptions
In order to be able to use logical replication to replicate individual tables (or all tables in a schema) between Supabase projects, CREATE SUBSCRIPTION
should be executable by the postgres
user without supseruser
privileges, in parity with the CREATE PUBLICATION
command.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
ianwoodfill commentedon Mar 2, 2024
Any update here? This guide is clearly outdated if this is no longer supported: https://supabase.com/docs/guides/database/postgres/setup-replication-external
alexandredev3 commentedon Mar 19, 2024
Any updates on this issue? I'm having the same problem
frankyw commentedon Apr 5, 2024
Seems like subscriptions are no longer supported, period.
https://supabase.com/docs/guides/database/postgres/roles-superuser
rustamd commentedon Jun 29, 2024
Looking for this as well, hopefully can get implemented soon.
steve-chavez commentedon Jan 23, 2025
This will come for free once pg 17 is supported.
t0mdicks0n commentedon Jan 30, 2025
I followed the same guide on how to setup replication on Supabase but superuser is needed so the guide is obsolete? At least remove that page on the docs almost 1 year after users in this thread notified you about it?
https://supabase.com/docs/guides/database/postgres/setup-replication-external
encima commentedon Jun 13, 2025
Hey folks,
The guide there is for replicating to an
external
system so the subscription is created on the target database. Creating publications etc are supported without superuser permissionsLanznx commentedon Jun 14, 2025
any update?
encima commentedon Jun 15, 2025
soedirgo commentedon Jul 7, 2025
Update: PG17 has now been rolled out to all regions. You can do
CREATE SUBSCRIPTION
by upgrading to PG17 via Project Settings > Infrastructure, so closing this.