[MDEV-4704] PROCESSLIST - Query Rank execution order Created: 2013-06-24  Updated: 2014-10-13

Status: Open
Project: MariaDB Server
Component/s: None
Fix Version/s: None

Type: Task Priority: Minor
Reporter: roberto spadim Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
PartOf
includes MDEV-4619 PLUGINS - Add LOCKS information at I_... Closed
includes MDEV-4672 PROCESSLIST - add two columns about q... Open
Relates
relates to MDEV-4748 metadata_lock_info plugin Closed
relates to MDEV-6864 extend mdl_info plugin Open

 Description   

hi guys, based on MDEV-4672 / MDEV-4748
could we see when a query will be executed?
(i think in mdl.h this is called as wait-for graph? or maybe it's the "A pending metadata lock request."?)

something like:
show query order <query id>
it will return:

message query id
waiting unlock table 1
waiting alter table 2
waiting xxxxxx 999999

this is nice when we have a busy server and want know when a query will be executed (or not), and help DBA to kill it or not


we could put another column to see informations about a lock
in MDEV-4619 we have a lock table in information schema, maybe this could be used here to link to that table, example:

message locks query id
waiting table lock 1,2,3,4,5 1234
waiting lock tables 44 423
waiting update 66 44

Generated at Thu Feb 08 06:58:30 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.