postgresql – 如何从postgres关闭Heroku SQL日志
发布时间:2020-12-13 16:07:14 所属栏目:百科 来源:网络整理
导读:我在Heroku上运行使用postgres的应用程序. 我的所有SQL语句都在我的日志中出现;我想把它关掉. 它们看起来像这样: Dec 03 05:41:36 ti-core app/postgres: [1566-2] #011FROM alias Dec 03 05:41:36 ti-core app/postgres: [1566-3] #011WHERE alias.nid = E
我在Heroku上运行使用postgres的应用程序.
我的所有SQL语句都在我的日志中出现;我想把它关掉. 它们看起来像这样: Dec 03 05:41:36 ti-core app/postgres: [1566-2] #011FROM alias Dec 03 05:41:36 ti-core app/postgres: [1566-3] #011WHERE alias.nid = E'10.5334/sta.at' AND alias.namespace = E'doi' Dec 03 05:41:36 ti-core app/postgres: [1566-4] #011 LIMIT 1 我无法弄清楚我在哪里设置了这个级别的heroku postgres调试以及在哪里将其降低了一个档次.谢谢! 解决方法
据推测,它来自log_statement设置为all.
要重置它: >对于整个集群:在postgresql.conf中注释log_statement或将其设置为’none’ 如果这没有帮助,请检查log_min_duration_statement. 相关文档章节:Error Reporting and Logging. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |