v.25.10Improvement

Limit exception message length

Limit exception message length when a constraint is violated. In previous versions, you could get a very long exception message when a very long string was inserted, and it ended up being written in the query_log. Closes #87032. #88801 (Alexey Milovidov).
Limiting the length of exception messages when a constraint is violated to prevent excessively long error messages in logs.

Why it matters

Previously, inserting very long strings that violated constraints generated extremely long exception messages, cluttering the query_log and making log analysis difficult. This feature truncates those messages to improve readability and log management.

How to use it

This feature is applied automatically in the new ClickHouse version; no additional configuration or commands are required to enable the limiting of exception message lengths.