~/talk

Postgres Partitioning Best Practices

Talkat PyCon Italia 2025 · 2025-05-28..05-31· [databases, data-engineering]
slides:none on file

Partitioning splits a huge table into child tables so operations like purging 2023 become a fast drop partition instead of a slow DELETE; example uses one range partition per year and recommends choosing list vs range vs hash by access patterns. Native Postgres supports partition pruning and per-partition indexes but not global indexes, requires the partition key in primary keys, and needs a new partitioned table plus data migration (PG Partman offers automated creation/deletion and online/offline migration helpers).

AI-written summary · about

  1. 0:00Introduction to partitioning
  2. 3:56How partitioning works
  3. 9:12Advantages and performance
  4. 15:03Best practices for implementation
  5. 19:11Using pg_partman
  6. 20:17Design and migration strategies
  7. 22:43Pitfalls and conclusions
  8. 25:09Question and answer 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.