1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-26 23:43:30 +03:00

Add subxid-overflow "isolation" test

This test covers a few lines of subxid-overflow-handling code in various
part of the backend, which are otherwise uncovered.

Author: Simon Riggs <simon.riggs@enterprisedb.com>
Reviewed-by: Dilip Kumar <dilipbalaut@gmail.com>
Discussion: https://postgr.es/m/CANbhV-H8ov5+nCMBYQFKhO+UZJjrFgY_ORiMWr3RhS4+x44PzA@mail.gmail.com
This commit is contained in:
Alvaro Herrera
2022-09-14 15:17:23 +02:00
parent 3fd1f4b9cd
commit 0e733278e3
4 changed files with 164 additions and 0 deletions

View File

@@ -32,6 +32,8 @@
* If none of the caches have overflowed, we can assume that an XID that's not
* listed anywhere in the PGPROC array is not a running transaction. Else we
* have to look at pg_subtrans.
*
* See src/test/isolation/specs/subxid-overflow.spec if you change this.
*/
#define PGPROC_MAX_CACHED_SUBXIDS 64 /* XXX guessed-at value */