#PostgreSQL18 brings major changes to the statistics ecosystem, like:
✨ pg_upgrade retains the optimizer stats (a welcome change!)
✨ Statistics I/O in bytes instead of pages
✨ New C API for extensions
✨ I/O visibility by backend with pg_stat_get_backend_io()
✨ Better insights for conflict management
Notably, you can now use the #PostgreSQL Cumulative Statistics API. Export, import and adjust stats at will.
Learn more in our latest blog from @c2main https://www.data-bene.io/en/blog/cumulative-statistics-in-postgresql-18