~/talk

How to copy a Postgres database?

Talkat Citus Con: An Event for Postgres 2023 · 2023-04-18..04-19· [databases]
slides:none on file

A new open source tool, pgcopydb, implements a practical answer: it uses pg_dump/pg_restore for schema but streams table data with a custom COPY protocol, runs pgcopydb clone as a reproducible 10 steps pipeline, copies tables in parallel, chunks huge tables, builds indexes concurrently (including primary keys), does COPY FREEZE and VACUUM, resumes after interruptions, migrates roles via pg_dumpall, and supports Change Data Capture with logical decoding and wal2json compatibility using --follow to catch and replay changes; large objects aren’t CDC-replicated.

AI-written summary · about

  1. 0:00Introduction
  2. 1:24How to copy a Postgres database?
  3. 7:32Introducing pgcopydb
  4. 9:24The 10 steps of pgcopydb clone
  5. 13:21pgcopydb concurrency and features
  6. 15:32Privileges & pgcopydb
  7. 17:26Change Data Capture
  8. 19:04Database Migration Complexity
  9. 21:35The 7 steps of pgcopydb follow
~/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.