Skip to content

Commit

Permalink
Merge pull request #237 from barrucadu/postgres-shm
Browse files Browse the repository at this point in the history
Increase shared memory in postgres upgrade runbook
  • Loading branch information
barrucadu authored Oct 16, 2023
2 parents 1d427b3 + f6c5620 commit f3548cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/runbooks/upgrade-to-a-new-version-of-postgres.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f3548cb

Please sign in to comment.