postgresql_16:9.5.11.1 Migration to Version 16.5
PostgreSQL 16 > Appendixes > Release Notes > Release 16.5 > Migration to Version 16.5
A dump/restore is not required for those running 16.X.
However, if you have ever detached a partition from a partitioned table that has a foreign-key reference to another partitioned table, and not dropped the former partition, then you may have catalog and/or data corruption to repair, as detailed in the fifth changelog entry below.
Also, if you are upgrading from a version earlier than 16.3, see (see postgresql_16:9.5.13).