]> granicus.if.org Git - postgresql/commit
Add isolation tests for the combination of EPQ and triggers.
authorAndres Freund <andres@anarazel.de>
Fri, 4 Oct 2019 21:01:35 +0000 (14:01 -0700)
committerAndres Freund <andres@anarazel.de>
Fri, 4 Oct 2019 21:01:35 +0000 (14:01 -0700)
commit54b0feaf90d8c00adb5aa9c094b4f70b509ede0f
treef6b7d6d8421a37ae5408fd22c1b528bc1b58b8d4
parent3b9c227008a65b0135931e9478cf2b5bb16eca34
Add isolation tests for the combination of EPQ and triggers.

As evidenced by bug #16036 this area is woefully under-tested. Add
fairly extensive tests for the combination.

Backpatch back to 9.6 - before that isolationtester was not capable
enough. While we don't backpatch tests all the time, future fixes to
trigger.c would potentially look different enough in 12+ from the
earlier branches that introducing bugs during backpatching is more
likely than normal. Also, it's just a crucial and undertested area of
the code.

Author: Andres Freund
Discussion: https://postgr.es/m/16036-28184c90d952fb7f@postgresql.org
Backpatch: 9.6-, the earliest these tests work
src/test/isolation/expected/eval-plan-qual-trigger.out [new file with mode: 0644]
src/test/isolation/isolation_schedule
src/test/isolation/specs/eval-plan-qual-trigger.spec [new file with mode: 0644]