diff options
author | Kevin Grittner <kgrittn@postgresql.org> | 2016-12-13 19:05:35 -0600 |
---|---|---|
committer | Kevin Grittner <kgrittn@postgresql.org> | 2016-12-13 19:05:35 -0600 |
commit | 5d80171adace192c6d4308ae4b22074d6b0809f3 (patch) | |
tree | 04d23733cc4eab224b14c937036a226cadf7cd10 /src/backend/utils/adt/quote.c | |
parent | 2bdee07abefee3e59db9f89da635d7ecf9716a7b (diff) |
Back-patch fcff8a575198478023ada8a48e13b50f70054766 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
Diffstat (limited to 'src/backend/utils/adt/quote.c')
0 files changed, 0 insertions, 0 deletions