aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2024-04-29 21:10:41 +0900
committerMichael Paquier <michael@paquier.xyz>2024-04-29 21:10:41 +0900
commit7e61e4cc7cfcf2a34f063094aeab01fdba7b65f6 (patch)
tree48d53551f0c095360b656d7eaeb9abe20e9ddece /src/tutorial/funcs.c
parent3c184092651b0b15ca1207c154ab3fd055e1e9fe (diff)
downloadpostgresql-7e61e4cc7cfcf2a34f063094aeab01fdba7b65f6.tar.gz
postgresql-7e61e4cc7cfcf2a34f063094aeab01fdba7b65f6.zip
Make two-phase tests of ECPG and main suite more concurrent-proof
The ECPG and main 2PC tests have been using rather-generic names for the prepared transactions they generate. This commit switches the 2PC transactions to use more complex GIDs, reducing the risk of naming conflicts. The main 2PC tests also include scans of pg_prepared_xacts that do not apply filters on the GID of the prepared transactions, making it possible to fail the test when any 2PC transaction runs concurrently. The CI has been able to see such failures with an installcheck running the ECPG and the main regression test suites in parallel. The queries on pg_prepared_xacts gain quals to only look after the GIDs generated locally. The race is very hard to reproduce, so no backbatch is done for now. Reported-by: Richard Guo Discussion: https://postgr.es/m/CAMbWs4-mWCGbbE_bne5=AfqjYGDaUZmjCw2+soLjrdNA0xUDFw@mail.gmail.com
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions