run check constraints only when affected columns are changed?
В списке pgsql-hackers по дате отправления:
| От | Peter Eisentraut |
|---|---|
| Тема | run check constraints only when affected columns are changed? |
| Дата | |
| Msg-id | 1326055327.15293.13.camel@vanquo.pezone.net обсуждение исходный текст |
| Ответы |
Re: run check constraints only when affected columns are
changed?
Re: run check constraints only when affected columns are changed? |
| Список | pgsql-hackers |
Currently, check constraints are verified whenever a table row is updated at all. It seems to me that we could possibly make this quite a bit more efficient if we only ran the check constraint expression when the update changes a column that is referenced by the constraint expression. Through dependency tracking, we have that information, and we already have the catalog infrastructure to store this information from primary and foreign keys. We'd just need to do some tweaking in the executor. Any thoughts on that? Possible pitfalls?
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера