v.25.6Improvement

Clickhouse/ch aliases will invoke clickhouse-client instead

clickhouse/ch aliases will invoke clickhouse-client instead of clickhouse-local if --host or --port are specified. Continuation of #79422. Closes #65252. #81509 (Alexey Milovidov).
clickhouse and ch command aliases now invoke clickhouse-client instead of clickhouse-local when --host or --port options are specified.

Why it matters

This change resolves confusion and improves usability by ensuring that users connecting to a remote ClickHouse server using --host or --port will correctly launch the clickhouse-client instead of clickhouse-local, which is intended for local queries only.

How to use it

Use the clickhouse or ch aliases with the --host or --port options to connect to a remote ClickHouse server. The system will automatically invoke the proper clickhouse-client executable.