# HG changeset patch
# User Dustin Collins <714871-dustinmm80@users.noreply.gitlab.com>
# Date 1698069892 0
#      Mon Oct 23 14:04:52 2023 +0000
# Node ID e4df2d2f62133081212fbd93edd828fcab8c1cbf
# Parent  d70a0f7aef3198507ece0246aa61619ba39439fc
Escape special characters in postgresql password

Changelog: changed

diff --git a/doc/settings/database.md b/doc/settings/database.md
--- a/doc/settings/database.md
+++ b/doc/settings/database.md
@@ -321,8 +321,8 @@
    postgresql['trust_auth_cidr_addresses'] = %w(127.0.0.1/24)
    postgresql['sql_user'] = "gitlab"
 
-   ##! SQL_USER_PASSWORD_HASH can be generated using the command `gitlab-ctl pg-password-md5 gitlab`,
-   ##! where `gitlab` is the name of the SQL user that connects to GitLab.
+   ##! SQL_USER_PASSWORD_HASH can be generated using the command `gitlab-ctl pg-password-md5 'gitlab'`,
+   ##! where 'gitlab' (single-quoted to avoid shell interpolation) is the name of the SQL user that connects to GitLab.
    postgresql['sql_user_password'] = "SQL_USER_PASSWORD_HASH"
 
    # force ssl on all connections defined in trust_auth_cidr_addresses and md5_auth_cidr_addresses