1 /*-------------------------------------------------------------------------
4 * Two-phase-commit resource managers tables
6 * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
11 * src/backend/access/transam/twophase_rmgr.c
13 *-------------------------------------------------------------------------
17 #include "access/multixact.h"
18 #include "access/twophase_rmgr.h"
20 #include "storage/lock.h"
21 #include "storage/predicate.h"
24 const TwoPhaseCallback twophase_recover_callbacks
[TWOPHASE_RM_MAX_ID
+ 1] =
27 lock_twophase_recover
, /* Lock */
29 multixact_twophase_recover
, /* MultiXact */
30 predicatelock_twophase_recover
/* PredicateLock */
33 const TwoPhaseCallback twophase_postcommit_callbacks
[TWOPHASE_RM_MAX_ID
+ 1] =
36 lock_twophase_postcommit
, /* Lock */
37 pgstat_twophase_postcommit
, /* pgstat */
38 multixact_twophase_postcommit
, /* MultiXact */
39 NULL
/* PredicateLock */
42 const TwoPhaseCallback twophase_postabort_callbacks
[TWOPHASE_RM_MAX_ID
+ 1] =
45 lock_twophase_postabort
, /* Lock */
46 pgstat_twophase_postabort
, /* pgstat */
47 multixact_twophase_postabort
, /* MultiXact */
48 NULL
/* PredicateLock */
51 const TwoPhaseCallback twophase_standby_recover_callbacks
[TWOPHASE_RM_MAX_ID
+ 1] =
54 lock_twophase_standby_recover
, /* Lock */
57 NULL
/* PredicateLock */