My OpenProject management software is installed with default postgresql 10. Currently the postgresql DB is 12, It is having lot of new features.
I want to upgrade my Pos
SHOW LC_COLLATE;
$ sudo systemctl list-units | grep postgres
$ sudo service postgresql-.service stop
$ /usr/pgsql-/bin/initdb -D /var/lib/pgsql//data --locale=
$sudo su postgres
$ /usr/pgsql-/bin/pg_upgrade --old-bindir /usr/pgsql-/bin --new-bindir /usr/pgsql-/bin --old-datadir /var/lib/pgsql//data --new-datadir /var/lib/pgsql/12/data --link --jobs=2 --check
If it's ok we can move to the next step, If not fix the issues before proceeding to the next step Expected output: Clusters are compatible
$sudo su postgres
$ /usr/pgsql-/bin/pg_upgrade --old-bindir /usr/pgsql-/bin --new-bindir /usr/pgsql-/bin --old-datadir /var/lib/pgsql//data --new-datadir /var/lib/pgsql//data --link
Expected output: Upgrade Complete
Thanks. ENJOY !!!