相关疑难解决方法(0)

PostgreSQL统计信息问题 - 无法重命名临时统计信息文件

我在Windows上运行PotgreSQL 9.4,并不断收到错误,

2015-06-15 09:35:36 EDT LOG could not rename temporary statistics file "pg_stat_tmp/global.tmp" to "pg_stat_tmp/global.stat": Permission denied 
Run Code Online (Sandbox Code Playgroud)

我还看到对global.stat和global.tmp的常量200-800k写入.我见过其他用户有同样的问题,但没有解决方案.它是一个大型数据库服务器,拥有300g数据和6,000个数据库.

我尝试过设置,

track_activities=off
Run Code Online (Sandbox Code Playgroud)

在配置文件中,但它似乎没有任何影响.

任何错误的帮助,或减少写入?

postgresql performance

10
推荐指数
1
解决办法
6779
查看次数

在 docker 中运行的 Postgres 数据库一直挂起

我正在使用 postgres docker 映像,并且在使用在 docker 映像中运行的数据库数月后,现在我得到了在一段时间后,它们只是挂起的行为。我可以执行bin/bash但不能用 postgres 做任何事情;命令不会返回并且容器不能被关闭。甚至docker kill -s SIGKILL <container_id>不起作用;需要重新启动 docker 服务器才能停止它们。

我能看到的唯一吸烟枪是消息:

 WARNING:  could not open statistics file "pg_stat_tmp/global.stat": Operation not permitted
Run Code Online (Sandbox Code Playgroud)

在所有容器上。任何人都有任何想法,我会非常感激,因为这目前正在扼杀一切。

postgresql docker

7
推荐指数
1
解决办法
1888
查看次数

标签 统计

postgresql ×2

docker ×1

performance ×1