Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit 1c72b0b

Browse files
Adding a README entry for ps_thread_id()
1 parent 65f0731 commit 1c72b0b

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,6 +1424,39 @@ mysql> SELECT sys.ps_is_account_enabled('localhost', 'root');
14241424
1 row in set (0.01 sec)
14251425
```
14261426

1427+
#### ps_thread_id
1428+
1429+
##### Description
1430+
1431+
Return the Performance Schema THREAD_ID for the specified connection ID.
1432+
1433+
##### Parameters
1434+
1435+
* in_connection_id (BIGINT UNSIGNED): The id of the connection to return the thread id for.
1436+
1437+
##### Returns
1438+
1439+
BIGINT UNSIGNED
1440+
1441+
##### Example
1442+
```SQL
1443+
mysql> SELECT sys.ps_thread_id(79);
1444+
+----------------------+
1445+
| sys.ps_thread_id(79) |
1446+
+----------------------+
1447+
| 98 |
1448+
+----------------------+
1449+
1 row in set (0.00 sec)
1450+
1451+
mysql> SELECT sys.ps_thread_id(CONNECTION_ID());
1452+
+-----------------------------------+
1453+
| sys.ps_thread_id(CONNECTION_ID()) |
1454+
+-----------------------------------+
1455+
| 98 |
1456+
+-----------------------------------+
1457+
1 row in set (0.00 sec)
1458+
```
1459+
14271460
#### ps_thread_stack
14281461

14291462
##### Description

0 commit comments

Comments
 (0)