From 065deebfe2cd506268b855aa8ce9e615ee9f09c9 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Thu, 24 Apr 2025 19:50:30 +0100 Subject: [PATCH] docs: Add instructions for checking and increasing max_connections in Postgres --- HelmChart/Docs/Postgres.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/HelmChart/Docs/Postgres.md b/HelmChart/Docs/Postgres.md index e9f743b0ec..9a51a8ee32 100644 --- a/HelmChart/Docs/Postgres.md +++ b/HelmChart/Docs/Postgres.md @@ -53,4 +53,21 @@ CREATE ROLE readonlyuser WITH LOGIN PASSWORD '' GRANT pg_read_all_data TO readonlyuser; ``` + +### Increasing max_connections for postgres. + +To see the current number of max_connections. You need to run the following command in psql. + ``` +SHOW max_connections; +``` + +To increase the max_connections, you need to run this sql command in psql. + + +``` +ALTER SYSTEM SET max_connections = 200; +``` + +Then you need to restart the postgres pod. +