Preserve comments in PostgreSQL configuration

pglift version

2.4.0

Summary

While using pglift pgconf edit to modify the PostgreSQL configuration, any comment added to the file is discarded upon saving. This is true for both patroni instances and non-patroni instances.

It would be nice if those comments could be preserved, because they are often used in config files. They are already preserved when using pglift pghba edit as of 2.4.0, which is neat. A similar behavior for pglift pgconf edit would be appreciated.

Thanks for considering.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information