Skip to content

invalid transaction termination with postgres 14.5 hammerdb 4.7 #545

Answered by sm-shaw
siddhsql asked this question in Q&A
Discussion options

You must be logged in to vote

You can look at examples of official reports on the TPC site, for example: https://www.tpc.org/results/fdr/tpcc/oracle_sparc_t5-8_tpc-c_fdr_032613.pdf

#define DEADLOCK 60 /* ORA-00060: deadlock */
#define NO_DATA_FOUND 1403 /* ORA-01403: no data found */
#define NOT_SERIALIZABLE 8177 /* ORA-08177: transaction not serializable*/
#define SNAPSHOT_TOO_OLD 1555 /* ORA-01555: snapshot too old */
not_serializable EXCEPTION;
PRAGMA EXCEPTION_INIT(not_serializable,-8177);
deadlock EXCEPTION;
PRAGMA EXCEPTION_INIT(deadlock,-60);
snapshot_too_old EXCEPTION;
PRAGMA EXCEPTION_INIT(snapshot_too_old,-1555);

As it is all open source, you can of course modify to your own purposes. However, I do recomme…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sm-shaw
Comment options

Answer selected by sm-shaw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants