Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-8412

Support Postgres 17 failover slots

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • Backlog
    • None
    • postgresql-connector
    • None
    • False
    • None
    • False

      As of version 17, Postgres finally supports failover for replication slots: pg_create_logical_replication_slot() has a new optional parameter for creating slots enabled for failover to replicas. Such a slot can be synchronized to replicas either manually (by calling pg_sync_replication_slots() on the stand-by) or automatically (by enabling sync_replication_slots), allowing clients like Debezium to consume from that slot after a failover, without missing any events.

      This requires slots to be created using this new parameter. So we'll need to add support for this to Debezium. Unfortunately, we cannot just always pass this option, since as of version 17, failover slots can only be created on primary servers, but not on stand-by servers, and users may explicitly want to do the latter.

              gunnar.morling Gunnar Morling
              gunnar.morling Gunnar Morling
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: