~/talk

Beginner's Guide to Partitioning vs. Sharding in Postgres

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

Explains when native Postgres partitioning versus sharding with the Citus extension actually speeds queries: partitioning gives partition pruning and data locality, parallel autovacuum across partitions, cheaper storage tiers and near-instant drop partition to expire data, but requires upfront partition key choice and maintenance (PGPartman, pg_cron). Sharding with Citus distributes shards across nodes, adds CPU/memory/disk and parallelism, offers shard rebalancing, object propagation, collocated tables and create_distributed_table, and can combine with partitioning for large time‑series.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 3:12What is Postgres partitioning
  3. 13:33What is sharding
  4. 25:34Partitioning vs sharding comparison
  5. 28:45Why partitioning improves query performance
  6. 32:19Why sharding improves query performance
  7. 35:34When sharding helps performance
  8. 36:15Key takeaways and conclusion
~/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.