postgresql - 是否有任何可能或选项来获取导致 postgres 从服务器内存不足的查询
问题描述
从 postgres 日志中:
2020-06-23 10:15:36 UTC [6052]: [1-1] db=,user= LOG: could not write temporary statistics file
"pg_stat_tmp/db_16387.tmp": No space left on device
2020-06-23 10:15:36 UTC [6052]: [2-1] db=,user= LOG: could not close temporary statistics file
"pg_stat_tmp/global.tmp": No space left on device
2020-06-23 10:15:37 UTC [6039]: [8-1] db=,user= FATAL: could not extend file
"base/16387/1102307.196": No space left on device
2020-06-23 10:15:37 UTC [6039]: [9-1] db=,user= HINT: Check free disk space.
2020-06-23 10:15:37 UTC [6039]: [10-1] db=,user= CONTEXT: xlog redo insert(init): rel 1
1663/16387/1102307; tid 25769659/1
2020-06-23 10:15:40 UTC [19987]: [11-1] db=prime,user=prime_user ERROR: could not write block
6537 of temporary file: No space left on device
是否有任何可能性,并且 postgres 维护有关长期运行查询的日志?
解决方案
推荐阅读
- angular - 加载和显示大型组织员工图片的 Angular 最佳方法
- android - 使用 OkHttp 库发布到从 Android 应用程序保存到 MySQL 的 PHP 脚本
- electron - 使用 app.relaunch() 后如何继续调试 Electron?
- cypress - 如何将元素计数分配给变量?
- sharepoint - Power Automate 流生成代理错误
- python - 为什么装饰器返回类型 None ?
- flutter - Flutter:从下拉列表中选择值时如何删除数据表的先前记录
- c# - 有没有使用 Microsoft.Identity 脚手架的好选择?
- c# - 我的加载项如何在 Office/Word 应用程序中侦听来自另一个加载项的事件?
- alexa - 我可以从 api 调用传递数据并使用 APL 显示它吗