[英]The client 'psql' truncates values in a column of type 'text'
I query pg_stat_activity
. 我查询pg_stat_activity
。 The column query
is of type text
. 列query
的类型为text
。 The queries can be very long. 查询可能很长。
The client psql
truncates very long queries. 客户端psql
截断很长的查询。
What should I do to see the full query? 我应该怎么做才能看到完整的查询?
psql
does not. psql
没有。 try running smth like 尝试像
select lpad('a',3000,'b');
Instead it is limited in postgresql.conf
, try: 相反,它受postgresql.conf
限制,请尝试:
b=# show track_activity_query_size;
track_activity_query_size
---------------------------
1024
(1 row)
track_activity_query_size (integer) track_activity_query_size(整数)
Specifies the number of bytes reserved to track the currently executing command for each active session, for the pg_stat_activity.query field. 为pg_stat_activity.query字段指定保留的字节数,以跟踪每个活动会话的当前执行命令。 The default value is 1024. This parameter can only be set at server start. 默认值为1024。只能在服务器启动时设置此参数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.