~/talk

Something Got Better For Partitioning in v18 Unless Reverted

Talkat PGConf India 2025 · 2025-03-05..03-07· [databases]
github:amitlan
slides:none on file

Shows that Postgres v18 makes generic plans practical for partitioned tables by moving partition locking until after runtime pruning, so the planner no longer locks every partition a generic plan references. Measured with pgbench prepared mode and plan_cache_mode=force_generic_plan, benchmarks show TPS stays nearly flat as partitions increase versus steep decline on v17. Change is a single commit that defers locking until after execution-time pruning; it substantially reduces partition-related overhead though a small residual degradation remains.

AI-written summary · about

~/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.