Simon Willison 3/9/2026

Production query plans without production data

Read Original

The article discusses new PostgreSQL 18 functions, pg_restore_relation_stats() and pg_restore_attribute_stats(), which enable copying query planner statistics from production to development. This allows developers to accurately simulate and debug production query execution plans without needing to replicate massive production databases. It also notes SQLite's existing capability via writable statistics tables for similar control over query planning.

Production query plans without production data

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser