pg_stat_activity中的查询被截断了吗? [英] Queries in pg_stat_activity are truncated?
本文介绍了pg_stat_activity中的查询被截断了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 SELECT current_query FROM pg_stat_activity;
查看当前正在执行的查询,但是我注意到查询被截断了。
I'm using SELECT current_query FROM pg_stat_activity;
to see the currently executing queries, but I noticed that the query is truncated. Is there any workaround or any other way to see the currently executing queries?
推荐答案
PostgreSQL 8.4添加参数 track_activity_query_size
。该值仍将被截断,但是您可以控制长度。
PostgreSQL 8.4 adds the parameter "track_activity_query_size
". The value will still be truncated, but you can control at what length.
这篇关于pg_stat_activity中的查询被截断了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文