v.25.12Improvement

Add support for loading ClickHouse Client configuration

Add support for loading ClickHouse Client configuration from XDG Base Directory paths (e.g., ~/.config/clickhouse/config.xml) in addition to the legacy ~/.clickhouse-client/ location. Resolves #89882. #90306 (Wujun Jiang).
Added support for loading ClickHouse Client configuration from XDG Base Directory paths, such as ~/.config/clickhouse/config.xml, alongside the legacy ~/.clickhouse-client/ directory.

Why it matters

This feature improves configuration management by aligning with the XDG Base Directory Specification, allowing users to store ClickHouse Client config files in standard locations. It resolves issues related to legacy configuration path limitations and enhances consistency across Linux environments.

How to use it

Place your ClickHouse Client configuration file in the XDG config directory, typically at ~/.config/clickhouse/config.xml. The client will automatically load configuration from this location in addition to the legacy directory without any extra setup.