pgsql: Improve tests for whether we can skip queueing RI enforcement tr
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | pgsql: Improve tests for whether we can skip queueing RI enforcement tr |
| Дата | |
| Msg-id | E1Sh8Sm-0002OM-Lu@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
Improve tests for whether we can skip queueing RI enforcement triggers. During an update of a PK row, we can skip firing the RI trigger if any old key value is NULL, because then the row could not have had any matching rows in the FK table. Conversely, during an update of an FK row, the outcome is determined if any new key value is NULL. In either case it becomes unnecessary to compare individual key values. This patch was inspired by discussion of Vik Reykja's patch to use IS NOT DISTINCT semantics for the key comparisons. In the event there is no need for that and so this patch looks nothing like his, but he should still get credit for having re-opened consideration of the trigger skip logic. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/cfa0f4255bb0f5550d37a01c4d8fe2966d20040c Modified Files -------------- src/backend/commands/trigger.c | 31 +++------ src/backend/utils/adt/ri_triggers.c | 129 ++++++++++++++++++++++++++++------- src/include/commands/trigger.h | 8 +- 3 files changed, 120 insertions(+), 48 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера