Hello Gediminas !
Thank you for posting on Microsoft Learn.
The CDC bit isn’t global as Fabric mirroring preview adds the azure_cdc extension per database, and only for the databases you select in the Azure portal mirroring enablement flow. If it shows up in postgres but not in your user DB, it usually means that DB wasn’t included (or your server doesn’t meet a preview limitation), so the extension wasn’t registered there.
On the same flexible server:
- PostgreSQL version must be 14–17
- Compute tier must not be burstable (GP/MO only)
- High availability must be off.
- No read replicas (and not a primary that has replicas).
If any of these are true, the mirroring workflow will skip registering azure_cdc in your DB. https://learn.microsoft.com/en-us/fabric/database/mirrored-database/azure-database-postgresql-limitations
You can rerun the mirroring enablement flow and include the right DB
In the Azure portal, go to your Azure Database for PostgreSQL Flexible Server under Fabric mirroring (preview) then Get started:
- The page checks prerequisites and lets you select which databases to enable.
- Select your user DB (not just postgres) then click prepare then accept the restart.
This flow preloads and registers azure_cdc only for the selected databases and bumps needed server params. https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-fabric-mirroring
By default you can mirror up to 3 databases per server. If you need more, increase azure_cdc.max_fabric_mirrors on the server first, then rerun the flow.
https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-fabric-mirroring
You can check if the extension is registered in that specific database:
-- Is the extension even available on the server?
SELECT * FROM pg_available_extensions WHERE name = 'azure_cdc';
-- Is it installed in THIS database?
SELECT * FROM pg_extension WHERE extname = 'azure_cdc';
-- Did the workflow set logical WAL?
SHOW wal_level;
If pg_extension returns no row for azure_cdc in your DB, it wasn’t registered there then go back to step 2.
Once installed, you’ll also see the azure_cdc schema and can use the troubleshooting UDFs like azure_cdc.tracked_publications() and azure_cdc.tracked_batches().