我在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)
在配置文件中,但它似乎没有任何影响.
任何错误的帮助,或减少写入?
我正在使用 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)
在所有容器上。任何人都有任何想法,我会非常感激,因为这目前正在扼杀一切。