[MDEV-19460] userstat per query, session (currently only global) Created: 2019-05-13 Updated: 2024-01-18 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Plugin - userstat |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major |
| Reporter: | Manjot Singh (Inactive) | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 3 |
| Labels: | None | ||
| Description |
|
Statistics should be tracked at 3 different levels, per query, per session, and globally. Currently, we only track this globally. Background: A patch was submitted to 5.2 in 2011 and 2012 that did this. Details are now difficult to find and involve the wayback machine. Here is some information: https://planet.mysql.com/entry/?id=28194 I am unable to locate the patch that was submitted itself, but it was not put into the codebase. Customer continued using patched 5.2 until now and cannot upgrade without this feature. |
| Comments |
| Comment by Manjot Singh (Inactive) [ 2019-07-02 ] |
|
Code is available here: https://code.launchpad.net/~ebergen/ |
| Comment by Sergei Golubchik [ 2021-06-04 ] |
|
Ideally this information should be in performance_schema now (and easily accessible as a sys_schema view, perhaps) |