Outdated Version
                
                You are viewing an older version of this section. View current production version.
SHOW PROCESSLIST
Shows details about currently running threads.
Syntax
SHOW PROCESSLIST
Remarks
- This command can be run on any MemSQL node (see Node Requirements for MemSQL Commands).
- This command exposes a formatted subset of data in the information_schema.processlisttable. Additionally,SHOW PROCESSLISToutput may truncate data from this table. To see all possible fields and the complete field text, query theinformation_schema.processlisttable directly.
- The Infocolumn’s data is affected by whether the global variableshow_query_parametersis set toONorOFF. By default,show_query_parametersis set toON, which results inInfofield containing the plain text of a query, including query parameters. Ifshow_query_parametersis set toOFF, theInfofield will only contain the parameterized query text.
- show_query_parametersis used in cases when access to sensitive data–in this case, query parameters–needs to be restricted. If this variable is set to- OFF, parameters will be hidden. This can be set only at startup, not during runtime; it must be set in the memsql.cnf, followed by a system restart.
Output
| Column | Description | 
|---|---|
| Id | Process ID | 
| User | User associated with this process. | 
| Host | Host name or IP address and port number | 
| db | Name of MemSQL database | 
| Command | Type of command associated with this process | 
| Time | Time (in seconds) | 
| State | Process state | 
| Info | Additional information about this process, including the query text. | 
Example
memsql> SHOW PROCESSLIST;
+----+------+-----------------+------+---------+------+-------+------------------+
| Id | User | Host            | db   | Command | Time | State | Info             |
+----+------+-----------------+------+---------+------+-------+------------------+
| 19 | root | localhost:33790 | test | Query   | 1118 | NULL  | SHOW PROCESSLIST |
+----+------+-----------------+------+---------+------+-------+------------------+
1 row in set (0.00 sec)
