JoeCode

TIL: upgrade PG from 14 to 15 on Ubuntu

Aug 03, 2023

1. Upgrade Ubuntu

$ sudo apt install update-manager-core
$ sudo apt update && sudo apt dist-upgrade
$ sudo do-release-upgrade

2. Finalize PG upgrade

$ sudo pg_dropcluster 15 main --stop
$ sudo pg_upgradecluster 14 main
$ sudo pg_dropcluster 14 main

Resources