~/talk

How to Upgrade Replication Clusters without Downtime?

Talkat PGConf India 2025 · 2025-03-05..03-07· [databases, devops-and-delivery]
links:none on file
slides:none on file

PG upgrade remains the fast option for major-version moves (about 7× faster than dump/restore), but until PG17 upgrades require stopping instances, recreating replication slots and subscriptions, and truncating tables. PG17 adds logical replication slots migration and preserves subscription metadata so upgrades no longer force full table copy. New utility PG create subscriber converts a standby into a logical subscriber using recovery_target_lsn/promote and copy_data=off, cutting initial logical-sync time (measured ~7–8× faster on a 5GB/10-table test) and enabling near-zero-downtime cluster upgrades.

AI-written summary · about

  1. 0:00Introduction to upgrades
  2. 1:07What is a database upgrade
  3. 5:25Types of replication in PostgreSQL
  4. 11:52Challenges in upgrading replication clusters
  5. 13:22Upgrading streaming replication till PG16
  6. 17:59Upgrading logical replication till PG16
  7. 20:26New logical replication features in PG17
  8. 23:01PG create subscriber tool in PG17
  9. 31:22Upgrading replication clusters using PG17 features
  10. 34:35Summary and key takeaways
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.