postern willibrandon
Install postern with WinGet
winget install --id=willibrandon.postern -e postern reads postgresql.conf, postgresql.auto.conf, pg_hba.conf and pg_ident.conf the way the PostgreSQL server does and reports what the server would refuse, as a language server for editors and as a command that checks the files and exits non-zero when one is wrong.