~/talk

PostgreSQL Partitioning: Slicing and Dicing for Performance and Easier Maintenance

Talkat POSETTE: An Event for Postgres 2024 · 2024-06-11..06-13· [databases]
slides:none on file

PostgreSQL declarative partitioning claims faster queries and easier maintenance by making partitions ordinary child tables that can be dropped or detached for retention; it supports RANGE, LIST, HASH and requires partitions to exist before inserts unless a default partition is used (which complicates maintenance). Primary key must include the partition column; ranges are lower-inclusive upper-exclusive; you cannot convert an existing table in-place so you must create a new partitioned table; use pg_partman to automate creating/detaching partitions and avoid >~1000 partitions to reduce planner overhead.

AI-written summary · about

  1. 0:00Intro
  2. 1:22The what & why of partitioning
  3. 3:57What are partitions
  4. 5:09Declarative partitioning
  5. 9:55Data retention & archiving
  6. 11:37Three types of partitions in Postgres
  7. 15:37Creating & maintaining partitions
  8. 24:36SQL tips & best practices
~/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.