This system table is used for implementing the
SHOW PROCESSLIST query.
user(String) – The user who made the query. Keep in mind that for distributed processing, queries are sent to remote servers under the
defaultuser. The field contains the username for a specific query, not for a query that this query initiated.
address(String) – The IP address the request was made from. The same for distributed processing. To track where a distributed query was originally made from, look at
system.processeson the query requestor server.
elapsed(Float64) – The time in seconds since request execution started.
read_rows(UInt64) – The number of rows read from the table. For distributed processing, on the requestor server, this is the total for all remote servers.
read_bytes(UInt64) – The number of uncompressed bytes read from the table. For distributed processing, on the requestor server, this is the total for all remote servers.
total_rows_approx(UInt64) – The approximation of the total number of rows that should be read. For distributed processing, on the requestor server, this is the total for all remote servers. It can be updated during request processing, when new sources to process become known.
memory_usage(Int64) – Amount of RAM the request uses. It might not include some types of dedicated memory. See the max_memory_usage setting.
query(String) – The query text. For
INSERT, it does not include the data to insert.
query_id(String) – Query ID, if defined.
is_cancelled(UInt8) – Was query cancelled.
is_all_data_sent(UInt8) – Was all data sent to the client (in other words query had been finished on the server).
SELECT * FROM system.processes LIMIT 10 FORMAT Vertical;
query: SELECT * from system.processes LIMIT 10 FORMAT Vertical;
1 rows in set. Elapsed: 0.002 sec.