linux - 更改配置后 statsinfo 扩展不活动
问题描述
我已经安装了 statinfo
[postgres@ 20180911 07:24:54 CentOS7604 data]$ rpm -qa | grep statsinfo
pg_statsinfo-10.0-1.pg10.rhel7.x86_64
我添加了以下行:
#shared_preload_libraries = 'pg_statsinfo'
我已经重新启动了 Postgres
[postgres@ 20180911 07:25:00 CentOS7604 data]$ ps -ef | grep postgres
postgres 1109 1 0 07:07 ? 00:00:00 /usr/pgsql-10/bin/postmaster -D /var/lib/pgsql/10/data/
postgres 1148 1109 0 07:07 ? 00:00:00 postgres: logger process
postgres 1169 1109 0 07:07 ? 00:00:00 postgres: checkpointer process
postgres 1171 1109 0 07:07 ? 00:00:00 postgres: writer process
postgres 1172 1109 0 07:07 ? 00:00:00 postgres: wal writer process
postgres 1173 1109 0 07:07 ? 00:00:00 postgres: autovacuum launcher process
postgres 1174 1109 0 07:07 ? 00:00:00 postgres: stats collector process
postgres 1175 1109 0 07:07 ? 00:00:00 postgres: bgworker: logical replication launcher
root 1247 1246 0 07:16 pts/0 00:00:00 su - postgres
postgres 1248 1247 0 07:16 pts/0 00:00:00 -bash
postgres 1300 1248 0 07:25 pts/0 00:00:00 ps -ef
postgres 1301 1248 0 07:25 pts/0 00:00:00 grep postgres
[postgres@ 20180911 07:25:35 CentOS7604 data]$
谁能告诉如何解决这个问题?
此致
解决方案
如手册中所述#
,行首表示该行是注释并且不是“活动的”。要使该行“做某事”,请删除#
因此,您需要将该行更改为:
shared_preload_libraries = 'pg_statsinfo'
#
注意行首的缺失
推荐阅读
- excel - Excel 2013 VBA 连接字符串类型不匹配
- excel - 在 Excel 中添加最后一行作为列
- javascript - 使用 appendChild 将数组转换为列表
- python-3.x - 通过从python中的子线程读取变量的状态来杀死父线程和子线程
- javascript - 如何在本机反应中从动态 UI 将数据上传到服务器
- javascript - 我可以知道一种在 Angular 8 表单中不提交“确认密码”字段的情况下向 Firebase 提交数据的方法吗?
- c++ - 将数据从应用程序单向发送到另一个应用程序的最佳实践
- .net-core - Azure Functions:从 local.settings.json 以外的其他文件获取连接字符串
- c# - 如何使用 AutoFixture / NSubsitute / NUnit 模拟被测对象的方法?
- python - 如何在机器人框架库中使用 selenium webdriver 方法?