~/talk

Postgres Partitioning Best Practices

Talkat Euruko 2025 · 2025-09-18..09-19· [databases]
slides:none on file

Postgres native partitioning plus the PG Partman extension is presented as a practical solution: use list, range, hash or composite partitioning (and subpartitioning) to reduce maintenance and enable partition pruning when queries filter on the partition key. Migrating a huge live table requires creating a new partitioned table and moving data with offline or online PG Partman methods; expect to manage many partitions (example: 2,000 partitions in the first year) and note limits like no global indexes and PKs that must include partition keys.

AI-written summary · about

  1. 0:00Postgres partitioning intro
  2. 2:29Sophia’s Nav Tracker challenge
  3. 5:41List partitioning by ship ID
  4. 7:47Range partitioning by log timestamp
  5. 9:33Hash and composite partitioning
  6. 10:57Key partitioning decisions
  7. 13:47Managing daily partitions
  8. 14:30Automate partition maintenance with PG Partman
  9. 15:56Migrate tables to partitions
  10. 16:59Beyond performance benefits
  11. 19:46Partitioning limitations
  12. 20:53Testing and query optimization
  13. 21:34Key takeaways and future use cases
  14. 22:15Design partitioning early
~/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.