Patroni PostgreSQL migration basics

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 Migration

Last updated:

Primary source: https://palark.com/blog/migrating-a-postgresql-cluster-managed-by-patroni

Quick Info

Patroni is a Python-based Open Source template for PostgreSQL designed to automate deployment of high-availability clusters.

Purpose and usage

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

Key points

  • What does WAL mean in this migration context?: WAL means all changes are logged first and only then written to the database.
  • When does WAL write happen relative to logging?: The write to the database happens after the change is logged.
  • Which components underpin Patroni PostgreSQL migration?: Patroni, WAL, streaming replication, DCS. For data transfer, streaming replication applies WAL records on replicas; for cluster state, DCS stores configuration.

Terms and entities

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

What is Patroni in a PostgreSQL cluster?

Patroni is a Python-based Open Source template for PostgreSQL designed to automate deployment of high-availability clusters.

What does WAL mean in this migration context?

WAL means all changes are logged first and only then written to the database.

When does WAL write happen relative to logging?

The write to the database happens after the change is logged.

Which components underpin Patroni PostgreSQL migration?

Patroni, WAL, streaming replication, DCS. For data transfer, streaming replication applies WAL records on replicas; for cluster state, DCS stores configuration.

Sources

  1. https://palark.com/blog/migrating-a-postgresql-cluster-managed-by-patroni

Machine metadata