v.21.4Improvements
Add current_database column to system.processes table
Addcurrent_databasecolumn tosystem.processestable. It contains the current database of the query. #22365 (Alexander Kuzmenkov).
Why it matters
This feature helps users identify the database context in which each query is executing, improving query monitoring and troubleshooting by providing clearer insight into query execution environments.How to use it
Query thesystem.processes table to see the new current_database column alongside other process information. No additional configuration is needed.