If your program constructs a configuration from one or more configuration files and maybe also built-in defaults, command line options, environment variables, or anything else, it is a good idea for the program to have a way to dump the actual, combined, configuration so that the user can see what it actually is.
This beats reading documentation and deducing what things should be. It helps with debugging configuration mistakes of all kinds.
Trust, but verify, sort of.
reshared this
Csepp 🌢
in reply to Lars Wirzenius • • •Ben Zanin
in reply to Lars Wirzenius • • •Cassandrich
in reply to Lars Wirzenius • • •Lars Wirzenius reshared this.
aburka 🫣
in reply to Lars Wirzenius • • •Cobra Mk III
in reply to Lars Wirzenius • • •Yeah, and the same applies to libraries. Also, sometines it'd be nice to see where the configuration came from.
Completely unrelated, I'm trying to change the User-Agent a Java program sends out when making HTTP queries. (Of course it also has two different ways of doing that for Reasons.)
Elena ``of Valhalla''
in reply to Lars Wirzenius • •ilmari
in reply to Lars Wirzenius • • •pg_settings
view is an excellent example of this.54.24. pg_settings
PostgreSQL Documentation