Pavel Stehule <stehule(at)kix(dot)fsv(dot)cvut(dot)cz> writes:
> Can I set somewhere an long for text, which is in current_query in
> "pg_catalog.pg_stat_activity"?
No. You could attach gdb to the backend that's running the troublesome
query and do "p debug_query_string" ...
regards, tom lane