There's more...
Do not confuse a major PostgreSQL upgrade with a minor one. While we can use the steps in this recipe to upgrade from 12.0 to 12.1, for example, we cannot use it to move from 11.4 to 12.0 or 12.1.
This is because an upgrade of that magnitude currently requires pg_upgrade, pg_dump, or some clever application of logical replication. In any of these cases, the newly upgraded PostgreSQL instance is actually a copy of the old database, rather than a binary compatible update.
Patroni relies on the PostgreSQL physical replication system to synchronize nodes. Since it's not possible to replicate between major PostgreSQL versions, Patroni can't integrate nodes with large version mismatches.
If we tried a similar tactic as outlined ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access