Skip to content

Conversation

@sebalix
Copy link
Contributor

@sebalix sebalix commented Oct 1, 2025

And rename mount_opts here and there to run_opts to store any kind of options that could be useful by docker compose run.

⚠️ Not tested yet.

And rename `mount_opts` here and there to `run_opts` to store any kind
of options that could be useful by `docker compose run`.
run_opts = (
f"-v {ctx.obj['store_path']}:/{ctx.obj['container_store_path']} "
# Increase PostgreSQL performance on restore
f"-e PGOPTIONS='-c full_page_writes=off -c autovacuum=off'"
Copy link
Contributor Author

@sebalix sebalix Oct 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's useless to put these options here, both full_page_writes and autovacuum have to be set in the postgresql.conf file or on Pg command line. They are not supposed to work at user session level.Closing this PR.

Better to enable them by default in docker-compose.yml:

  db:
    image: ghcr.io/camptocamp/postgres:14-postgis-3
    command: >-
      [...]
      -c autovacuum=off
      # Speed up DB restore (could corrupt DB in case of failing system)
      # but it's a good deal for dev purpose.
      -c full_page_writes=off

@sebalix sebalix closed this Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant