# HG changeset patch
# User Priyan Sureshbabu <psureshbabu@gitlab.com>
# Date 1625222607 0
#      Fri Jul 02 10:43:27 2021 +0000
# Node ID ba049350d8a3cdf4d25209932efabf19d2efc021
# Parent  878a65757cb53576031355ac85fa2c589b36f1bc
Add information about external Postgres upgrade and correct the restore instructions

diff --git a/doc/settings/database.md b/doc/settings/database.md
--- a/doc/settings/database.md
+++ b/doc/settings/database.md
@@ -772,6 +772,13 @@
 
 ### Upgrade a non-packaged PostgreSQL database
 
+You can upgrade the external database as suggested by the provider after stopping all the processes that are connected to the database (Puma, Sidekiq):
+
+```shell
+sudo gitlab-ctl stop puma
+sudo gitlab-ctl stop sidekiq
+```
+
 Before proceeding with the upgrade, note the following:
 
 - Before upgrading, review the [GitLab and PostgreSQL version compatibility table](../package-information/postgresql_versions.md)
@@ -823,7 +830,7 @@
 1. Shutdown the PostgreSQL 11 database host.
 
 1. Edit `/etc/gitlab/gitlab.rb` and update the `gitlab_rails['db_host']` setting
-   to point to the PostgreSQL database 11 host.
+   to point to the PostgreSQL database 12 host.
 
 1. Reconfigure GitLab: