Fix bug in PreCommit_CheckForSerializationFailure. A transaction that has
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Fix bug in PreCommit_CheckForSerializationFailure. A transaction that has already been marked as PREPARED cannot be killed. Kill the current transaction instead. One of the prepared_xacts regression tests actually hits this bug. I removed the anomaly from the duplicate-gids test so that it fails in the intended way, and added a new test to check serialization failures with a prepared transaction. Dan Ports
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/lmgr/predicate.c | modified | +15 −0 |
| src/test/regress/expected/prepared_xacts.out | modified | +41 −6 |
| src/test/regress/sql/prepared_xacts.sql | modified | +21 −1 |