| От | Dmitrii Bondar |
|---|---|
| Тема | Re: [fixed] Trigger test |
| Дата | |
| Msg-id | 17a8a24f7295201873d105c5118024f5@postgrespro.ru обсуждение исходный текст |
| Ответ на | Re: [fixed] Trigger test (Lilian Ontowhee <ontowhee@gmail.com>) |
| Ответы |
Re: [fixed] Trigger test
|
| Список | pgsql-hackers |
Hi! Thank you for the review! > 3. Consider updating documentation for doc/src/contrib-spi.sgml, or any > file as appropriate, to reflect the changes. The changes have now been added to doc/src/contrib-spi.sgml. I also added a consideration note about interactions with BEFORE triggers. > 4. Are there any cases where check_primary_key() and > check_foreign_key() should be called using a BEFORE trigger? Will this > change break backwards compatibility? Consider adding a test with a > BEFORE trigger to ensure the error "must be fired by AFTER trigger" is > raised. The usage within BEFORE triggers appears to be entirely incorrect. The functions check_primary_key() and check_foreign_key() are intended for use in creating constraint triggers, which according to the documentation must be AFTER ROW triggers. Therefore, any cases using BEFORE triggers are invalid. I have updated the test so that it now raises the error "must be fired by AFTER trigger." Can you also help me with the patch status? What status should I move the patch to?
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера