我正在运行一个日志 ( log_min_duration_statement = 200
) 来分析 PostgreSQL 9.0 中的一些慢查询,但没有记录最差查询的语句。有什么办法可以找出查询实际上是什么?
***
(为了简洁和隐私,一些值被替换了。)
2012-06-29 02:10:39 UTC LOG: duration: 266.658 ms statement: SELECT *** FROM "oauth_accesstoken" WHERE "oauth_accesstoken"."token" = E'***'
2012-06-29 02:10:40 UTC LOG: duration: 1797.400 ms statement:
2012-06-29 02:10:49 UTC LOG: duration: 1670.132 ms statement:
2012-06-29 02:10:50 UTC LOG: duration: 354.336 ms statement: SELECT *** FROM ***
...