26.4.5.15 The ps_thread_id() Function
Returns the Performance Schema thread ID assigned to a given connection ID, or the thread ID for the current connection if the connection ID is NULL
.
in_connection_id BIGINT UNSIGNED
: The ID of the connection for which to return the thread ID. This is a value of the type given in thePROCESSLIST_ID
column of the Performance Schemathreads
table or theId
column ofSHOW PROCESSLIST
output.