| От | Peter Eisentraut |
|---|---|
| Тема | Re: [PATCH] SQL assertions prototype |
| Дата | |
| Msg-id | 5294EB88.50802@gmx.net обсуждение исходный текст |
| Ответ на | Re: [PATCH] SQL assertions prototype (Simon Riggs <simon@2ndQuadrant.com>) |
| Список | pgsql-hackers |
On 11/24/13, 10:03 AM, Simon Riggs wrote: > So we'd need to get access to the changed rows, rather than > re-executing a huge SQL command that re-checks every row of the table. > That last point will make it unusable for sensible amounts of data. SQL assertions work with arbitrary expressions. So even if you had the changed rows, you couldn't do anything with them in general. For cases where it makes sense to consider the changed rows, you probably want a per-table trigger or an exclusion constraint or perhaps an auto-updated materialized view. Then again, we have lots of ways to make queries fast even for large tables.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера