~/talk

It's Not You, It's Me: Breaking Up with Massive Tables via Partitioning

Talkat PostgreSQL Conference Europe 2023 · 2023-12-12..12-15· [databases]
linkedin:chelsea-dole
slides:none on file

Shows four concrete migration recipes: a full offline duplicate-and-rename, an online duplicate with triggers and backfill, a single-host view+trigger trick for tight disk, and a cross-host cutover using logical replication with partition_route to seed a new partitioned instance. Explains tradeoffs (need partition key in primary/unique constraints, hash fixes partition count, default partitions hide missing rules), gives numbers (100 GB as a rough threshold, thousands of partitions hurts planning), and recommends PGPartman for automated maintenance.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:49What is partitioning
  3. 3:14Partitioning vs sharding
  4. 3:58PostgreSQL partitioning history
  5. 5:02Partition types in PostgreSQL
  6. 6:49Range partitioning explained
  7. 7:52List partitioning explained
  8. 9:17Hash partitioning explained
  9. 10:39Benefits of partitioning
  10. 14:12Drawbacks and gotchas
  11. 15:55When to partition tables
  12. 17:42Logical replication for partitions
  13. 21:10Migrating existing tables
  14. 23:16Offline migration with extra disk space
  15. 26:24Online migration with duplicated tables
  16. 29:36Online migration with limited disk space
  17. 32:47Logical replication migration
  18. 37:43Post-migration maintenance
  19. 39:49Configuration and observability
  20. 40:54Organizational support and Q&A
~/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.