From ed49bc2f2f4973b5b1d83a5ebd2e5c405d4e885c Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 25 Apr 2025 16:24:03 +0200 Subject: [PATCH] Docs: update database process --- Docs/SettingUpPSQL.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Docs/SettingUpPSQL.md b/Docs/SettingUpPSQL.md index c8da686795..df8cda4460 100644 --- a/Docs/SettingUpPSQL.md +++ b/Docs/SettingUpPSQL.md @@ -6,8 +6,10 @@ Increase the max number of connections. osm2pgsql needs connection one per table (and a few more), and since we are making one table per layer in MapComplete, this amounts to a lot. -- Open PGAdmin, open the PGSQL-tool (CLI-button at the top) -- Run `max_connections = 2000;` and `show config_file;` to get the config file location (in docker). This is probably `/var/lib/postgresql/data/postgresql.conf` +- Open PGAdmin, open the PGSQL-tool (CLI-button at the top); alternativly: psql --host=172.17.0.1 --port=5444 + --user=user +- Run `show config_file;` to get the config file location (in docker). This is probably + `/var/lib/postgresql/data/postgresql.conf` - In a terminal, run `sudo docker exec -i bash` (run `sudo docker ps` to get the container id) - `sed -i "s/max_connections = 100/max_connections = 5000/" /var/lib/postgresql/data/postgresql.conf` - Validate with `cat /var/lib/postgresql/data/postgresql.conf | grep "max_connections"`