]> granicus.if.org Git - postgresql/commit
Add isolation test for INSERT ON CONFLICT speculative insertion failure.
authorAndres Freund <andres@anarazel.de>
Tue, 14 May 2019 18:45:40 +0000 (11:45 -0700)
committerAndres Freund <andres@anarazel.de>
Tue, 14 May 2019 18:54:06 +0000 (11:54 -0700)
commit04595960a0a7c8844198668186bec2a6115244e0
tree21ea05f9a07ef7a4258b7039688c3abdd7fb57be
parentd7bf9ad8431700763a135710e2685317c67e25bc
Add isolation test for INSERT ON CONFLICT speculative insertion failure.

This path previously was not reliably covered. There was some
heuristic coverage via insert-conflict-toast.spec, but that test is
not deterministic, and only tested for a somewhat specific bug.

Backpatch, as this is a complicated and otherwise untested code
path. Unfortunately 9.5 cannot handle two waiting sessions, and thus
cannot execute this test.

Triggered by a conversion with Melanie Plageman.

Author: Andres Freund
Discussion: https://postgr.es/m/CAAKRu_a7hbyrk=wveHYhr4LbcRnRCG=yPUVoQYB9YO1CdUBE9Q@mail.gmail.com
Backpatch: 9.5-
src/test/isolation/expected/insert-conflict-specconflict.out [new file with mode: 0644]
src/test/isolation/isolation_schedule
src/test/isolation/specs/insert-conflict-specconflict.spec [new file with mode: 0644]