~/talk

Speeding up logical replication setup

Talkat PostgreSQL Conference Europe 2024 · 2024-10-22..10-25· [databases]
slides:none on file

pg_createsubscriber for Postgres 17 converts a prepared physical replica into a logical one to avoid slow per-table COPY-based initial sync, creating publication/subscription pairs and replication slots for every database and setting the recoveryTargetLSN to the latest replication slot LSN so the replica has all data up to a single cut point. It runs on the target server, drops preexisting subscriptions, removes unused physical slots, runs pg_resetwal to change the system identifier, and turns subscriptions on; for multi‑TB clusters this cuts setup from days to hours but breaks cascading physical stands, requires matching major versions and careful rollback planning.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:57Motivation for faster setup
  3. 3:04How initial sync works
  4. 7:08Introducing pg_create_subscriber
  5. 12:14Tool design requirements
  6. 15:37Behind the scenes concept
  7. 20:26Key steps in conversion
  8. 26:19Cleanup and final steps
  9. 32:14Tool interface and options
  10. 38:42Example execution
  11. 42:00Warnings and limitations
  12. 47:02When to avoid this approach
  13. 48:59Q&A session
~/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.