You can perform major version upgrades by using the pg_upgrade tool which PostgreSQL natively provides. Keep in mind that version upgrades require downtime of the database system. If you are looking for zero downtime, then you may need to use the logical replication feature for major version upgrades. For more information about the logical replication feature, see the PostgreSQL documentation.
Written by Bakul Banthia
Updated over a year ago