How to create replication slots?


I would want to create a replication slot in order to sync the changes in my database to GCP BigQuery.

When I try to run the command to create the replication slot it fails and tells me that I need superuser privileges:

neondb=> select * FROM pg_create_logical_replication_slot('i-am-testing','wal2json');
ERROR:  must be superuser or replication role to use replication slots