v.21.1Improvements
Now Distinct Interface Types for MySQL and PostgreSQL Queries in Query Log
Now queries coming to the server via MySQL and PostgreSQL protocols have distinctive interface types (which can be seen in theinterfacecolumn of the tablesystem.query_log):4for MySQL, and5for PostgreSQL, instead of formerly used1which is now used for the native protocol only. #17437 (Vitaly Baranov).
Why it matters
This feature improves the visibility and differentiation of query sources by protocol in thesystem.query_log. It helps administrators and users to easily identify whether a query came through the MySQL, PostgreSQL, or native ClickHouse protocol, enhancing monitoring and debugging capabilities.How to use it
Users can view the interface type of incoming queries by querying thesystem.query_log table and inspecting the interface column. Values 4 and 5 correspond to MySQL and PostgreSQL protocols respectively, while 1 indicates the native ClickHouse protocol. No additional configuration is required to enable this feature.