如何在Google Cloud Postgres上启用慢查询日志

时间:2018-07-05 08:48:10

标签: postgresql google-cloud-platform google-cloud-sql

documentation说明了如何为MySQL启用慢速查询日志,但Postgres没有任何帮助。

如何启用Postgres慢查询日志来调试慢查询?如果没有显式选项,如何修改postgres配置文件以自己添加此文件?

1 个答案:

答案 0 :(得分:2)

当前无法在Cloud SQL上为Postgres启用log_min_duration_statement标志。

此功能正在开发中,您可以follow its progress here。当有关此功能的一些新闻可用时,您可以单击左上角的星形图标以获取电子邮件通知。