diff --git a/content/posts/postgres-update.md b/content/posts/postgres-update.md new file mode 100644 index 0000000..12dd2ae --- /dev/null +++ b/content/posts/postgres-update.md @@ -0,0 +1,31 @@ +--- +title: Обновление PostgreSQL +description: pg_upgradecluster +date: 2023-10-09T00:20:00+06:00 +tags: [linux, postgres] +--- + +## Листинг запущенных экземпляров PostgreSQL +```shell +pg_lsclusters +``` + +## Остановка экземпляра PostgreSQL новой версии +```shell +pg_dropcluster main --stop +``` + +## Миграция со старой версии на новую +```shell +pg_upgradecluster main +``` + +## Дроп экземпляра PostgreSQL старой версии +```shell +pg_dropcluster main +``` + +## Удаление пакетов старой версии PostgreSQL +``` +apt purge -y postgresql- postgresql-client- +```