Skip to content

Commit 065deeb

Browse files
committed
docs: Add instructions for checking and increasing max_connections in Postgres
1 parent e6b2525 commit 065deeb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

HelmChart/Docs/Postgres.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,21 @@ CREATE ROLE readonlyuser WITH LOGIN PASSWORD '<password>'
5353
GRANT pg_read_all_data TO readonlyuser;
5454
```
5555

56+
57+
### Increasing max_connections for postgres.
58+
59+
To see the current number of max_connections. You need to run the following command in psql.
60+
5661
```
62+
SHOW max_connections;
63+
```
64+
65+
To increase the max_connections, you need to run this sql command in psql.
66+
67+
68+
```
69+
ALTER SYSTEM SET max_connections = 200;
70+
```
71+
72+
Then you need to restart the postgres pod.
73+

0 commit comments

Comments
 (0)