This video will show how to upgrade PostgreSQL Database Server
from PostgreSQL 9.6 to PostgreSQL 10 on Debian.
Here is the commands:
$ su -
dpkg-query -l postgresql*
// Run pg_lsclusters, your 9.6 and 10 main clusters should
// be "online".
pg_lsclusters
// Stop the 10 cluster and drop it.
pg_dropcluster 10 main --stop
// Upgrade the 9.6 cluster to the latest version.
pg_upgradecluster 9.6 main
// Your 9.6 cluster should now be "down".
pg_lsclusters
// Check that the upgraded cluster works,
// then remove the 9.6 cluster.
psql -U postgres
pg_dropcluster 9.6 main
// After all you may totally remove version 9.6 from the server
apt --purge remove postgresql-client-9.6 postgresql-9.6
dpkg-query -l postgresql*
Смотрите видео How to Upgrade PostgreSQL from 9.x to 10 on Debian? онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Mustafa Akdemir 14 Октябрь 2017, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 7,735 раз и оно понравилось 27 людям.