1. MagicESP
  2. Ubuntu Server 22.04
  3. PostgreSQL
  4. Upgrade from PostgreSQL 12 on Ubuntu 20.04 to PostgreSQL 14 on Ubuntu 22.04

Upgrade from PostgreSQL 12 on Ubuntu 20.04 to PostgreSQL 14 on Ubuntu 22.04


sudo apt install -y postgresql-14

// upgrade
sudo pg_dropcluster 14 main --stop
sudo pg_upgradecluster 12 main

// check
pg_lsclusters 

// remove
sudo pg_dropcluster 12 main
sudo apt remove -y postgresql-12