Skip to main content
Version: Latest-4.1

SHOW PROFILELIST

SHOW PROFILELIST lists the query profile records cached in your StarRocks cluster. For more information about query profile, see Query Profile Overview.

This feature is supported from v3.1 onwards.

By default, no privilege is required to perform this operation. If the FE configuration item authorization_enable_query_profile_access_check is set to true, a user can list only the profiles of the queries they ran, and listing the profiles of queries run by other users requires the SYSTEM-level OPERATE privilege. You can follow the instructions in GRANT to grant this privilege.

Syntax​

SHOW PROFILELIST [LIMIT n]

Parameters​

LIMIT n: lists n most recent records.

Return value​

ReturnDescription
QueryIdThe ID of the query.
StartTimeThe start time of the query.
TimeThe latency of the query.
StateThe status of the query, including:Error: The query encounters an error.Finished: The query is finished.Running: The query is running.
StatementThe statement of the query.

Examples​

Example 1: Show five most recent query profile records.

SHOW PROFILELIST LIMIT 5;

Relevant SQLs​

Rocky the happy otterStarRocks Assistant

AI generated answers are based on docs and other sources. Please test answers in non-production environments.