I want to uncomment the wal_level parameter and change the value from minimal to archive
how to perform this action by sed / perl one-liner ?
$ grep wal_level /var/lib/pgsql/data/postgresql.conf
#wal_level = minimal # minimal, archive, or hot_standby
expected results:
wal_level = archive # minimal, archive, or hot_standby
Note that wal_level
could be couple of spaces from the "#".
For example:
# wal_level = minimal
or
# wal_level = minimal
etc.