v.23.5Improvement

Preserve initial_query_id for ON CLUSTER queries for introspection

Preserve initial_query_id for ON CLUSTER queries, which is useful for introspection (under distributed_ddl_entry_format_version=5). #50015 (Azat Khuzhin).
Preserve the initial_query_id for ON CLUSTER queries to enable better introspection under distributed_ddl_entry_format_version=5.

Why it matters

This feature ensures that the original query identifier is retained when executing ON CLUSTER queries. It improves traceability and introspection capabilities by allowing users to track and correlate distributed DDL queries more effectively.

How to use it

To take advantage of this feature, enable or use ON CLUSTER queries with the setting distributed_ddl_entry_format_version=5. The initial_query_id will then be preserved automatically during distributed execution.