PostgreSQL 配置参数可以通过 psql 上面来进行查看。
命令为:
SHOW config_file;
输入上面的命令后,就可以看到配置参数的路径。
postgres=# SHOW config_file;
config_file
-----------------------------------------
/etc/postgresql/16/main/postgresql.conf
(1 row)
postgres=#
然后可以对配置文件进行修改后,重启数据库来让数据库配置生效。