pg_conftool(1) read and edit PostgreSQL cluster configuration files


pg_conftool [options] [version cluster] [configfile] command


pg_conftool allows to show and set parameters in PostgreSQL configuration files.

If version cluster is omitted, it defaults to the default cluster (see user_clusters(5) and postgresqlrc(5)). If configfile is omitted, it defaults to postgresql.conf. configfile can also be a path, in which case version cluster is ignored.


-s, --short
Show only the value (instead of key = value pair).
-v, --verbose
Verbose output.
Print help.


show parameter|all
Show a parameter, or all present in this config file.
set parameter value
Set or update a parameter.
remove parameter
Remove (comment out) a parameter from a config file.
Open the config file in an editor. Unless $EDITOR is set, vi is used.


Christoph Berg <[email protected]>