Add isolation tests for snapshot behavior in ri_triggers.c
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 7 Apr 2022 17:57:29 +0000 (19:57 +0200)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 7 Apr 2022 18:30:59 +0000 (20:30 +0200)
commit00cb86e75d6dd13a8bc07f79c2cdbe20d96c2d92
tree108e0d524d6dc7b718b9f93169c8c906f8f294a3
parent2c7ea57e56ca5f668c32d4266e0a3e45b455bef5
Add isolation tests for snapshot behavior in ri_triggers.c

They are to check the behavior of RI_FKey_check() and
ri_Check_Pk_Match().  A test case whereby RI_FKey_check() queries a
partitioned PK table under REPEATABLE READ isolation produces wrong
output due to a bug of the partition-descriptor logic and that is noted
as such in the comment in the test.  A subsequent commit will fix the
bug and replace the buggy output by the correct one.

Author: Amit Langote <amitlangote09@gmail.com>
Discussion: https://postgr.es/m/1627848.1636676261@sss.pgh.pa.us
src/test/isolation/expected/fk-snapshot.out [new file with mode: 0644]
src/test/isolation/isolation_schedule
src/test/isolation/specs/fk-snapshot.spec [new file with mode: 0644]