Description
I'm running a postgres (debian) container.
A database has been created.
Later I see performance issues due to the JIT compiler (it takes way more time to plan/evaluate than just executing the quick query).
So I want to add jit = off
to my postgresql.conf
I created the file /docker-entrypoint-initdb.d/10-postgresql.conf_disable_jit.sh inside the container :
#!/bin/bash
/bin/grep -q '^jit = off$' /var/lib/postgresql/data/pgdata/postgresql.conf || /bin/echo -e '\n# Added by 10-postgresql.conf_disable_jit.sh:\njit = off' >> /var/lib/postgresql/data/pgdata/postgresql.conf
Unfortunately, this script is not executed.. :-/
If a database already exists, all custom initialization scripts are skipped!
Request:
Add a second custom container initialization directory, and always execute the scripts therein.
Like:
/docker-custom-entrypoint.d/
This way we can customize the container, the postgres server itself, etc via this directory, and customize databases using the /docker-entrypoint-initdb.d/ dir.
Then I would have been able to place my script in /docker-custom-entrypoint.d/10-postgresql.conf_disable_jit.sh instead.