Revert "Fix an O(N^2) problem in foreign key references".

Tom Lane <tgl@sss.pgh.pa.us>

Commit: ed301d6dbe32eaad4f226903d430336e5a0d72aa
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2015-09-15T15:09:16Z
Releases: 9.5.0
Revert "Fix an O(N^2) problem in foreign key references".

Commit 5ddc72887a012f6a8b85707ef27d85c274faf53d does not actually work
because it will happily blow away ri_constraint_cache entries that are
in active use in outer call levels.  In any case, it's a very ugly,
brute-force solution to the problem of limiting the cache size.
Revert until it can be redesigned.

Files

PathChange+/−
src/backend/utils/adt/ri_triggers.c modified +3 −35