]> granicus.if.org Git - postgresql/commit
Remove dead foreign key optimization code
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 19 Jul 2018 06:20:59 +0000 (08:20 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 10 Nov 2018 15:14:51 +0000 (16:14 +0100)
commit34479d9a36a280afe1387146871d4c1528cf2cbf
tree2566dceb9709fa63717ab05ed40cb2dc7aac55fc
parent5fde047f2b41e71706d4ea9e8eb0a401f64192c1
Remove dead foreign key optimization code

The ri_KeysEqual() calls in the foreign-key trigger functions to
optimize away some updates are useless because since
adfeef55cbcc5dc72a772777f88c1be05a70dfee those triggers are not enqueued
at all.  (It's also not useful to keep these checks as some kind of
backstop, since it's also semantically correct to just run the full
check even with equal keys.)

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
src/backend/utils/adt/ri_triggers.c