Citus in Azure Cosmos DB; Replication Attribute

Kallin Carolus Khan 0 Reputation points
2025-05-14T23:34:50.41+00:00

Hello,

We are trying to run the below command in our Azure Cosmos DB, but we get the error "ERROR: Only roles with the REPLICATION attribute may use replication slots.permission denied to use replication slots." We are wondering how to create a logical replication slot, as it is important for our application to run.

Thank you!

Kallin

SELECT * FROM pg_create_logical_replication_slot('XXXXXXXX', 'pgoutput');


Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
{count} votes

1 answer

Sort by: Most helpful
  1. Oury Ba-MSFT 21,126 Reputation points Microsoft Employee Moderator
    2025-05-21T19:36:37.99+00:00

    @Kallin Carolus Khan Thank you for reaching out.

    Logical replication is not supported in Azure Cosmos db for PostgreSQL at this time. This is a limitation in Azure Cosmos db for PostgreSQL. It is in our Product group backlog however there is no commitment timeline.

    Azure PostgreSQL flexible server does support logical replication. see here https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-logical

    You can raise a feature request for azure cosmos db for PostgreSQL.

    Some customers have done this, and it is under review. You can comment and vote on the below post once you access the portal.

    User's image

    User's image

    https://feedback.azure.com/d365community/search/?q=azure+cosmos+db+for+postgresql

    Regards,

    Oury

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.