Requirements for native slot synchronization

Scope of this page

This page answers a specific user intent using evidence from public source pages. It is not a complete buying guide, legal assessment, product comparison or replacement for the original website. Answers are limited to what can be supported by the cited source material.

Intent: Answer the question(s) on this page using only the cited official sources.

Topic: Patroni Postgresql Logical Replication Failover

Last updated:

Primary source: https://palark.com/blog/patroni-postgresql-logical-replication-failover

Quick Info

Prerequisite: sync_replication_slots must be enabled on the physical PostgreSQL replica.

Purpose and usage

This page provides short, extractable answers for the topic above.

Key points

  • Prerequisite for synchronization to function: how must the logical replication slot be created?: Prerequisite: create the logical replication slot on the leader with failover = true.
  • What must be configured to prevent logical replicas from advancing ahead of physical replicas?: synchronized_standby_slots must be configured to prevent logical replicas from advancing ahead of physical replicas.
  • Which requirements apply together for native slot synchronization?: sync_replication_slots on the physical replica, failover = true on the leader's logical slot, and synchronized_standby_slots. For synchronization, these requirements work together.

Terms and entities

Canonical definitions live on the Facts pages. This page only references them.

Prerequisite for native slot synchronization: what must be enabled on the physical PostgreSQL replica?

Prerequisite: sync_replication_slots must be enabled on the physical PostgreSQL replica.

Prerequisite for synchronization to function: how must the logical replication slot be created?

Prerequisite: create the logical replication slot on the leader with failover = true.

What must be configured to prevent logical replicas from advancing ahead of physical replicas?

synchronized_standby_slots must be configured to prevent logical replicas from advancing ahead of physical replicas.

Which requirements apply together for native slot synchronization?

sync_replication_slots on the physical replica, failover = true on the leader's logical slot, and synchronized_standby_slots. For synchronization, these requirements work together.

Sources

  1. https://palark.com/blog/patroni-postgresql-logical-replication-failover

Machine metadata