postgresql - max_connections 的不同值
问题描述
max_connections
来自postgresql.conf
文件的值为100
当我检查查询中的值时:
select *
from pg_gettings
我懂了500
我尝试通过以下方式重新加载设置:
select pg_reload_conf()
并再次检查
select *
from pg_gettings
但它仍然显示500
。
为什么配置文件包含一个值而查询返回另一个值?
解决方案
您可以检查该sourcefile
视图中的列以找出该属性的当前值来自何处。
也许您的配置文件使用了include
另一个配置文件,或者使用alter system
. 在这种情况下,postgresql.auto.conf
将被列为sourcefile
.
推荐阅读
- r - R警告要替换的项目数不是替换长度的倍数
- puppeteer - Puppeteer:page.type() 错过了字符串的前几个字符
- r - 如何在 R 中仅从 Wikipedia 下载部分 vcard 数据?
- r - R:根据匹配键重新编码多列
- javascript - 在 html/javascript 中从对象创建表
- node.js - 如何使用 cookie 或 301 获取请求?
- opengl-es - 绘制大量四边形时的制服或顶点属性?
- python - Python:游戏没有运行
- javascript - 如何自动刷新 API 数据?
- javascript - 如何以角度使用特定的 REST API 元素