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).
Why it matters
Previously, inserting very long strings that violated constraints generated extremely long exception messages, cluttering thequery_log and making log analysis difficult. This feature truncates those messages to improve readability and log management.