Command to validate a postgresql configuration file?
8
votes
3
answers
15425
views
I am generating postgresql configuration files via ansible, and putting them in
/etc/postgresql/XX/main/conf.d/whatever.conf
. I accidentally made a syntax error and broke my postgresql, requiring manual fixing.
Is there any postgresql command to validate that a file is a valid postgresql.conf file?
sudoers
files can be validates with /usr/sbin/visudo -cf path/to/file
. Is there anything for postgresql?
I'm currently running Ubuntu 18.04 & 20.04, with PostgreSQL 10, 12 etc (yes several different versions).
Asked by Amandasaurus
(1007 rep)
Jan 17, 2022, 03:03 PM
Last activity: Mar 31, 2023, 11:23 AM
Last activity: Mar 31, 2023, 11:23 AM