Capabilities of pg_rewind in Patroni PostgreSQL

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 Switchover

Last updated:

Primary source: https://palark.com/blog/patroni-postgresql-cluster-switchover

Quick Info

It rolls back the replica state to match the primary state if the replica has more transactions.

Purpose and usage

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

Key points

  • What specific situation allows pg_rewind to be used?: pg_rewind is applicable when a replica holds more transactions than the primary.

Terms and entities

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

How does pg_rewind function during a rollback?

It rolls back the replica state to match the primary state if the replica has more transactions.

What specific situation allows pg_rewind to be used?

pg_rewind is applicable when a replica holds more transactions than the primary.

Sources

  1. https://palark.com/blog/patroni-postgresql-cluster-switchover

Machine metadata