我试图通过设置此标志来启用 PostgreSQL 中的事务日志,其中查询运行时间超过 3 秒
log_min_duration_statement = 3000
Run Code Online (Sandbox Code Playgroud)
如何在不重新启动Postgres的情况下重新加载配置文件?
我已尝试以下选项并收到这些错误
1) postgres=# select pg_reload_config();
**ERROR: function pg_reload_config() does not exist**
LINE 1: select pg_reload_config();
2) postgres@ospostgresql:/$ /usr/lib/postgresql/11/bin/pg_ctl reload
pg_ctl: no database directory specified and environment variable PGDATA unset
Try "pg_ctl --help" for more information.
Run Code Online (Sandbox Code Playgroud) 我是 PostgreSQL 新手,我想了解如何查看 PostgreSQL 实例中共享缓冲区的利用率。
假设我的配置中有shared_buffers = 8GB,有没有办法检查该8GB中使用了多少?
非常感谢,苏雷什。