在pgAdmin 3中,我能够通过以下方式自定义服务器配置(.config(:
Tools -> Server configuration -> postgresql.config -> change parameters -> reload server
尽管我已经搜索和研究过,但我无法在 pgAdmin 4 (v1.5( 中执行此操作。任何帮助都将非常有用,因为我真的需要微调PG。
总结一下评论和我自己的经验:该功能尚未移植回 pgAdmin4(这就是我回滚到 pgAdmin3 的原因:编辑pg_hba.conf
对我们客户的管理员很有用。不幸的是,pgAdmin3仅与PostgreSQL 9.5兼容(。
但是您仍然在">工具>重新加载配置"菜单中有"重新加载"选项,您可以在手动编辑postgresql.conf
或pg_hba.conf
后使用该选项。必须选择"服务器"节点才能启用该选项。
重新加载配置
选项 1:从命令行外壳
su - postgres
/usr/bin/pg_ctl reload
选项 2:使用 SQL
SELECT pg_reload_conf();
见 http://www.heatware.net/databases/postgresql-reload-config-without-restarting/