首页 > 解决方案 > max_connections 的不同值

问题描述

max_connections来自postgresql.conf文件的值为100

当我检查查询中的值时:

select *
from pg_gettings

我懂了500

我尝试通过以下方式重新加载设置:

select pg_reload_conf()

并再次检查

select *
from pg_gettings

但它仍然显示500

为什么配置文件包含一个值而查询返回另一个值?

标签: postgresql

解决方案


您可以检查该sourcefile视图中的列以找出该属性的当前值来自何处。

也许您的配置文件使用了include另一个配置文件,或者使用alter system. 在这种情况下,postgresql.auto.conf将被列为sourcefile.


推荐阅读