"Markus Wollny" <Markus.Wollny@xxxxxxxxxxx> writes: > pg_stat_activity has some limitations however; if you use a lot of > dynamically generated complex queries, you might stumble over the 255 > character limit of current_query in pg_stat_activity, statement-strings > longer than that are just cut off. The limit has been ~1K, not 255, for a long time (since 8.0). regards, tom lane