Re: Request for Implementation of Custom Error Messages for CHECK Constraints

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Request for Implementation of Custom Error Messages for CHECK Constraints
Дата
Msg-id CAKFQuwbezTS9OESdzY6S2Vzj27MTj9KT=ZSk-FDv3gx1iUzVUw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Request for Implementation of Custom Error Messages for CHECK Constraints  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
On Monday, May 12, 2025, Bruce Momjian <bruce@momjian.us> wrote:

Yeah, you could name the constraint
"Custom_error_message_when_the_condition_is_not_met." and then just
convert underscore to spaces and display that to the user.


 The 63 byte limit seems much more likely to be a factor if the name has to serve the duty of a human-friendly error message.

David J.

В списке pgsql-hackers по дате отправления: