sys.ps_thread_trx_info(thread_id)
ps_thread_trx_info is a stored function available with the Sys Schema.
It returns a JSON object with information about the thread specified by the given thread_id. This information includes:
The maximum length of the returned JSON object is determined by the value of the ps_thread_trx_info.max_length sys_config option (by default 65535). If the returned value exceeds this length, a JSON object error is returned.
© 2023 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/ps_thread_trx_info/