5.1 Feature: Process list table

« previous entry | next entry »
Mar. 15th, 2006 | 01:12 pm

I was asked about features in 5.1 this morning and one popped out that one of Elliot's new developers completed, which is the "PROCESSLIST" table.

As an example:

mysql> select * from PROCESSLIST WHERE command="query";
+----+------+------+--------------------+---------+------+----------- +-------------------------------------------------+
| ID | USER | HOST | DB | COMMAND | TIME | STATE | INFO |
+----+------+------+--------------------+---------+------+----------- +-------------------------------------------------+
| 2 | root | | information_schema | Query | 0 | preparing | select * from PROCESSLIST WHERE command="query" |
+----+------+------+--------------------+---------+------+----------- +-------------------------------------------------+
1 row in set (0.00 sec)

Adding show commands and turning them into information_schema table is pretty simple. I'll be leading some exercises at the MySQL User's Conference in the evening.
Tags:

Link | Leave a comment | Add to Memories | Tell a Friend

Comments {3}

Woohoo!

from: [info]jzawodn
date: Mar. 15th, 2006 03:23 pm (UTC)
Link

I remember wanting that years ago! :-)

Perhaps I'll do a major overhaul of mytop for 5.1

Reply | Thread

(no subject)

from: [info]jamesd
date: Mar. 16th, 2006 05:14 am (UTC)
Link

If you have an idle or new developer, a check of the variables available via select @variable but not available via SHOW and filling in the gaps would be handy. We've picked up a few of those. Trivial workaround but inconsistency irritates people.

Reply | Thread

How about other SHOW commands?

from: [info]gmaxia
date: Mar. 21st, 2006 10:02 am (UTC)
Link

Good job Brian!
But, how about the other SHOW commands?
Specifically, SHOW SLAVE STATUS, SHOW MASTER LOGS, and SHOW MASTER STATUS are almost indispensable to deal with replication issues.
Also, SHOW VARIABLES and SHOW STATUS would be really useful in tables.

Can you pull a general trick to convert all current SHOW commands into information schema tables?
Now, THAT would be great!

Cheers
Giuseppe

Reply | Thread