Add isolation tests for snapshot behavior in ri_triggers.c
Alvaro Herrera <alvherre@alvh.no-ip.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/test/isolation/expected/fk-snapshot.out | added | +124 −0 |
| src/test/isolation/isolation_schedule | modified | +1 −0 |
| src/test/isolation/specs/fk-snapshot.spec | added | +61 −0 |
Discussion
- simplifying foreign key/RI checks 67 messages · 2021-01-18 → 2022-05-02