简体   繁体   中英

The client 'psql' truncates values in a column of type 'text'

I query pg_stat_activity . The column query is of type text . The queries can be very long.

The client psql truncates very long queries.

What should I do to see the full query?

psql does not. try running smth like

select lpad('a',3000,'b');

Instead it is limited in postgresql.conf , try:

b=# show track_activity_query_size;
 track_activity_query_size
---------------------------
 1024
(1 row)

According to docs :

track_activity_query_size (integer)

Specifies the number of bytes reserved to track the currently executing command for each active session, for the pg_stat_activity.query field. The default value is 1024. This parameter can only be set at server start.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM