-
- Downloads
Back-patch fcff8a57 as a bug fix.
When there is both a serialization failure and a unique violation, throw the former rather than the latter. When initially pushed, this was viewed as a feature to assist application framework developers, so that they could more accurately determine when to retry a failed transaction, but a test case presented by Ian Jackson has shown that this patch can prevent serialization anomalies in some cases where a unique violation is caught within a subtransaction, the work of that subtransaction is discarded, and no error is thrown. That makes this a bug fix, so it is being back-patched to all supported branches where it is not already present (i.e., 9.2 to 9.5). Discussion: https://postgr.es/m/1481307991-16971-1-git-send-email-ian.jackson@eu.citrix.com Discussion: https://postgr.es/m/22607.56276.807567.924144@mariner.uk.xensource.com
Showing
- doc/src/sgml/mvcc.sgml 28 additions, 7 deletionsdoc/src/sgml/mvcc.sgml
- src/backend/access/nbtree/nbtinsert.c 8 additions, 0 deletionssrc/backend/access/nbtree/nbtinsert.c
- src/test/isolation/expected/read-write-unique-2.out 29 additions, 0 deletionssrc/test/isolation/expected/read-write-unique-2.out
- src/test/isolation/expected/read-write-unique-3.out 12 additions, 0 deletionssrc/test/isolation/expected/read-write-unique-3.out
- src/test/isolation/expected/read-write-unique-4.out 41 additions, 0 deletionssrc/test/isolation/expected/read-write-unique-4.out
- src/test/isolation/expected/read-write-unique.out 29 additions, 0 deletionssrc/test/isolation/expected/read-write-unique.out
- src/test/isolation/isolation_schedule 4 additions, 0 deletionssrc/test/isolation/isolation_schedule
- src/test/isolation/specs/read-write-unique-2.spec 36 additions, 0 deletionssrc/test/isolation/specs/read-write-unique-2.spec
- src/test/isolation/specs/read-write-unique-3.spec 33 additions, 0 deletionssrc/test/isolation/specs/read-write-unique-3.spec
- src/test/isolation/specs/read-write-unique-4.spec 48 additions, 0 deletionssrc/test/isolation/specs/read-write-unique-4.spec
- src/test/isolation/specs/read-write-unique.spec 39 additions, 0 deletionssrc/test/isolation/specs/read-write-unique.spec
Loading
Please register or sign in to comment