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

Upgrade from PostgreSQL 10 on Ubuntu 18.04 to PostgreSQL 12 on Ubuntu 20.04


sudo apt install -y postgresql-12

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

// check
pg_lsclusters 

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