The attached isolation test patch (written by Claude code) shows that the new RI fast path can get some things wrong when a foreign key uses a cross-type equality operator.
The test has two permutations differing only in the primary key's type -- date against a timestamp FK in the first, timestamp against timestamp in the second. The interleaving is identical and the referenced key is present throughout, so both should behave the same way. The second succeeds (which is correct), while the first fails with a foreign key violation (which is incorrect). The fast path was introduced by b7b27eb41. This is an issue on 19 and master only. -- Peter Geoghegan
0001-Add-isolation-test-for-the-RI-fast-path-s-cross-type.patch
Description: Binary data
