v.21.4Improvements

Add current_database column to system.processes table

Add current_database column to system.processes table. It contains the current database of the query. #22365 (Alexander Kuzmenkov).
Added a current_database column to the system.processes table that shows the current database of each running query.

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 the system.processes table to see the new current_database column alongside other process information. No additional configuration is needed.