in the past i upgraded postgresql server from 9.3 to 9.6 version in this way:
(dump all the DBs)
apt-get install postgresql-9.6 postgresql-contrib-9.6
pg_dropcluster 9.6 main --stop
pg_upgradecluster 9.3 main
pg_dropcluster 9.3 main
And then, i relaunched the initdb, recreated the databases and restored with the previous dumps. now i want to upgrade from 9.6 to 10 or major. Is there a way to do this without dump all the DBs and then restore them? Thanks in advance
Duplicate: How to upgrade PostgreSQL from version 9.6 to version 10.1 without losing data?