Many times, the postgresql service can't restart after some configuration changes.
Is there any command line tool allowing to check the syntax of pg_hba.conf
and other pg *.conf
files before reloading/restarting the service, or even better, after any config change ?
Best Answer
You can run:
.. from within
psql
. orkill -HUP
thepostmaster
process.Any config validation errors will then get put into the Postgres log file, and it won't reload the config. Example log:
I'm not aware of a tool that just checks config for validity, but there was a thread on the pgsql-hackers mailing list here that discussed a proposal for a validator.