I want define my own message for each constraint. Is it possible to customize constraint violation messages in PostgreSQL?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
This has been asked in Postgres Forum: Custom Constraint Violation Errors
and after some discussion:
with what I think would work best: