git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 34479d9) | patch
Apply RI trigger skipping tests also for DELETE
2018年7月19日 06:37:32 +0000 (08:37 +0200)
2018年11月10日 15:14:51 +0000 (16:14 +0100)
commit 69ee2ff9308bbfe0e0a89667555e901fec5e154b
Apply RI trigger skipping tests also for DELETE

The tests added in cfa0f4255bb0f5550d37a01c4d8fe2966d20040c to skip
firing an RI trigger if any old key value is NULL can also be applied
for DELETE. This should give a performance gain in those cases, and it
also saves a lot of duplicate code in the actual RI triggers. (That
code was already dead code for the UPDATE cases.)

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
src/backend/commands/trigger.c diff | blob | blame | history
src/backend/utils/adt/ri_triggers.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /