From f6c5620f391e6eec6dabccc1432ab9ab95380ae6 Mon Sep 17 00:00:00 2001 From: Michael Walker Date: Mon, 16 Oct 2023 23:08:26 +0100 Subject: [PATCH] Increase shared memory in postgres upgrade runbook postgres uses shm for IPC, so this helps with the performance. --- docs/src/runbooks/upgrade-to-a-new-version-of-postgres.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/runbooks/upgrade-to-a-new-version-of-postgres.md b/docs/src/runbooks/upgrade-to-a-new-version-of-postgres.md index b2f8d9a2..46034538 100644 --- a/docs/src/runbooks/upgrade-to-a-new-version-of-postgres.md +++ b/docs/src/runbooks/upgrade-to-a-new-version-of-postgres.md @@ -63,7 +63,7 @@ Replace `podman` with `docker` in the following commands if you're using that. 6. Bring up a new database container with the dump bind-mounted into it: ```bash - sudo podman run --rm --name="$CONTAINER" -v "$(pwd):/backup" -v "${VOLUME_DIR}:/var/lib/postgresql/data" -e "POSTGRES_DB=${POSTGRES_DB}" -e "POSTGRES_USER=${POSTGRES_USER}" -e "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}" "postgres:${TAG}" + sudo podman run --rm --name="$CONTAINER" -v "$(pwd):/backup" -v "${VOLUME_DIR}:/var/lib/postgresql/data" -e "POSTGRES_DB=${POSTGRES_DB}" -e "POSTGRES_USER=${POSTGRES_USER}" -e "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}" --shm-size=1g "postgres:${TAG}" ``` 7. In another shell, restore the dump: