Pavel Stehule <stehule@kix.fsv.cvut.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