Search code examples
prestotrinopresto-jdbc

Trino API to get query history


Is there any way to get all the query history that is executed in trino?

I need an API or query to get the history of the executed query.


Solution

  • https://trino.io/docs/current/connector/system.html#runtime-queries

    show columns from system.runtime.queries;
    select * from system.runtime.queries;