v.21.9Improvement

Set Client Query Compatibility for MySQL and PostgreSQL

Set client query kind for mysql and postgresql compatibility protocol handlers. #26498 (anneji-dev).
Set client query kind for mysql and postgresql compatibility protocol handlers in ClickHouse.

Why it matters

This feature addresses the need to correctly identify and handle the type of client queries coming from MySQL and PostgreSQL compatibility protocol handlers. It improves query processing accuracy and compatibility when ClickHouse interacts with clients using these protocols.

How to use it

This feature is integrated into the ClickHouse compatibility protocol handlers for mysql and postgresql. Users do not need to make manual changes; query kinds are set automatically when using the respective protocol handlers.