Skip to content

Allow CREATE SUBSCRIPTION command without needing superuser privilege #1646

Open
@burggraf

Description

@burggraf

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

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions