| От | Verena Ruff |
|---|---|
| Тема | Re: error handling |
| Дата | |
| Msg-id | 4461EC0A.9060001@triosolutions.at обсуждение |
| Ответ на | error handling (Verena Ruff <lists@triosolutions.at>) |
| Ответы |
Re: error handling
|
| Список | pgsql-novice |
Hello, sorry for answering so late, ... > I do not know if there is an specific error handler built in postgresql (besides error-codes). > > If you break the unique constraint an error will be thrown. A > workaround may be to launch a trigger BEFORE the insertion and do whatever is necessary within the trigger. > This is possibillity I was thinking of, too. But if there are many inserts and (probably) only a few of them would break the unique constraint, there would be a great overhead. This was what I'd like to avoid with a custom error handler. Regards, Verena
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера