-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initdb script seems does not respect hba_file configuration option #1131
Comments
You should create your custom hba_file and volume mount it in the image at |
Is there some way we can ask PostgreSQL what the It might even make sense to wrap this up in a file existence check? (so if |
We ask for the Line 244 in ef9747f
root@da94ae7a13df:/# postgres -C hba_file
postgres: could not access the server configuration file "/var/lib/postgresql/data/postgresql.conf": No such file or directory
# need to run `initdb` or create and configure the `postgresql.conf` file
root@da94ae7a13df:/# gosu postgres initdb
root@da94ae7a13df:/# postgres -C hba_file
/var/lib/postgresql/data/pg_hba.conf The I would hesitate to append to a file in a different/custom location since users might be using that bug to skip/ignore our |
It seems that location of
pg_hba.conf
file is just hardcoded:postgres/15/bookworm/docker-entrypoint.sh
Line 253 in 8a631b9
But If I set my custom hba_file, then initdb will create redundant
$PGDATA/pg_hba.conf
file.The text was updated successfully, but these errors were encountered: