Postgres: How to set fsync=off

Created on 25 Apr 2016  路  2Comments  路  Source: docker-library/postgres

Sorry for the simple question, hopefully the answer is also simple.

If I want to use the standard PG 9.5 image but the only thing I want to change is to set fsync=off, how/where should I configure that?

I'm hoping there's a way to do this without completely recreating the entrypoint or conf files.

Most helpful comment

Thanks, that works. For docker-compose, you can simply add this to the command: line, e.g. command: -c fsync=off

All 2 comments

I want to change is to set fsync=off, how/where should I configure that?

I think it is similar solution than the -c shared_buffers=256MB example here :
https://github.com/docker-library/postgres/pull/54#issuecomment-190978193

Thanks, that works. For docker-compose, you can simply add this to the command: line, e.g. command: -c fsync=off

Was this page helpful?
0 / 5 - 0 ratings