An Azure managed PostgreSQL database service for app development and deployment.
Hello @Alex Kutner ,
Thank you for contacting Microsoft support. I understand the urgency of resolving this issue, and I am committed to helping you find a solution as quickly as possible.
After reviewing everything you provided, here's what we know:
The key issue is the PostgreSQL version. On PostgreSQL 16 and earlier, logical replication slots are not automatically preserved or synchronized to the HA standby. Native slot synchronization with sync_replication_slots is available only starting with PostgreSQL 17. For PostgreSQL 16, Azure requires the pg_failover_slots extension together with supporting configuration such as hot_standby_feedback = on
Therefore, a slot sync metric staying at 0 is expected if only hot_standby_feedback was enabled but pg_failover_slots was not fully configured. Healthy HA and working CDC confirm that the current primary and consumer are operational, but they do not prove that the slot exists on the standby and will survive promotion.
Required Server Settings: -
<<SQL>>
SHOW server_version;
SHOW wal_level;
SHOW hot_standby_feedback;
SHOW shared_preload_libraries;
SHOW max_replication_slots;
SHOW max_wal_senders;
Ref: -
https://learn.microsoft.com/en-us/azure/postgresql/high-availability/concepts-high-availability
https://learn.microsoft.com/en-us/azure/postgresql/extensions/concepts-extensions-considerations
https://learn.microsoft.com/en-us/azure/postgresql/configure-maintain/concepts-logical
Regards
Maraiah