Re: [PATCH] SQL assertions prototype

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Cleaner build output when not much has changed
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: pre-commit triggers