Skip to main content

System Tables

Databend provides a set of system tables that contain metadata about your Databend deployment, databases, tables, queries, and system performance. These tables are read-only and are automatically updated by the system.

System tables are organized in the system schema and can be queried using standard SQL. They provide valuable information for monitoring, troubleshooting, and understanding your Databend environment.

Available System Tables

Database & Table Metadata

TableDescription
system.tablesProvides metadata information for all tables including properties, creation time, size, and more.
system.tables_with_historyProvides historical metadata information for tables, including dropped tables.
system.databasesContains information about all databases in the system.
system.databases_with_historyContains historical information about databases, including dropped databases.
system.columnsProvides information about columns in all tables.
system.indexesContains information about table indexes.
system.virtual_columnsLists virtual columns available in the system.

Query & Performance

TableDescription
system.query_logContains information about executed queries, including performance metrics.
system.metricsContains information about system metric events.
system.query_cacheProvides information about the query cache.
system.locksContains information about acquired locks in the system.

Functions & Settings

TableDescription
system.functionsLists all available built-in functions.
system.table_functionsLists all available table functions.
system.user_functionsContains information about user-defined functions.
system.settingsContains information about system settings.
system.configsContains configuration information for the Databend deployment.

System Information

TableDescription
system.build_optionsContains information about build options used to compile Databend.
system.clustersContains information about clusters in the system.
system.contributorsLists contributors to the Databend project.
system.creditsContains information about third-party libraries used in Databend.
system.cachesProvides information about system caches.

Utility Tables

TableDescription
system.numbersA table containing a single column with integers starting from 0, useful for generating test data.
system.streamsContains information about streams in the system.
system.temp_tablesContains information about temporary tables.
system.temp_filesContains information about temporary files.

Information Schema

TableDescription
information_schema.tablesANSI SQL standard metadata view for tables.