我正在尝试为effective_cache_size启用和设置一个值,并发出一个SIGHUP,但该值不会改变。运行postgres 9.5.5。根据文档,它不需要重新启动,只需重新加载。 这是我在postgresql.conf中插入的值
effective_cache_size = 12GB
我没有在postgresql.conf中调用其他配置文件。 当我查询pg_settings时,源文件显示/data1/pgdata/mydb/postgresql.auto.conf而不是/data1/pgdata/mydb/postgresql.conf
这有点多了,我用了
ALTER system set effective_cache_size = 12 GB
然后跑
select pg_reload_conf;
当我跑
时show effective_cache_size;
它说12 GB
有什么想法吗?