| От | Michael Musenbrock |
|---|---|
| Тема | Custom Contraint Violation Errors |
| Дата | |
| Msg-id | 20111104065622.135750@gmx.net обсуждение исходный текст |
| Ответы |
Re: Custom Contraint Violation Errors
|
| Список | pgsql-general |
Hi, I'm looking for a way to create a custom, for our application parsable, error message on constraint violation. The perfect thing would be, having table names, schemas and primary keys in that error message. My first thought was to create a function which gets triggered by the constraint violation, which creates the custom error. But I have not found any information if this is possible to create a trigger on a constraint violation, and if yes, how could that be done? I would be glad, If someone could light me up on that issue. Thanks in advance and Kind Regards, Michael -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера