![]() Start PostgreSQL again sudo systemctl start postgresql Upgrade the 9.6 cluster: sudo pg_upgradecluster -m upgrade 9.6 main Stop the database: sudo systemctl stop postgresql Stop all processes and services writing to the database. Stop the 10 cluster and drop it: sudo pg_dropcluster 10 main -stop The recommended procedure is to remove the 10 cluster with pg_dropcluster and then upgrade with pg_upgradecluster. This is done so that a fresh installation works out of the box without the need to create a cluster first, but of course it clashes when you try to upgrade 9.6/main when 10/main also exists. There already is a cluster main for 10 (since this is created by default on package installation). Run pg_lsclusters: Ver Cluster Port Status Owner Data directory Log fileĩ.6 main 5432 online postgres /var/lib/postgresql/9.6/main /var/log/postgresql/ġ0 main 5433 online postgres /var/lib/postgresql/10/main /var/log/postgresql/postgresql-10-main.log ![]() A newer version will be installed side-by-side with the earlier version. Then run sudo apt-get install postgresql-10. Make sure that your database is not being updated.
0 Comments
Leave a Reply. |