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).