Consistently use "superuser" instead of "super user"
[pgsql.git] / src / include / access / twophase_rmgr.h
blob2709d72d8feb1b01724ca8fc12a3ddfb952cf1ca
1 /*-------------------------------------------------------------------------
3 * twophase_rmgr.h
4 * Two-phase-commit resource managers definition
7 * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/access/twophase_rmgr.h
12 *-------------------------------------------------------------------------
14 #ifndef TWOPHASE_RMGR_H
15 #define TWOPHASE_RMGR_H
17 typedef void (*TwoPhaseCallback) (TransactionId xid, uint16 info,
18 void *recdata, uint32 len);
19 typedef uint8 TwoPhaseRmgrId;
22 * Built-in resource managers
24 #define TWOPHASE_RM_END_ID 0
25 #define TWOPHASE_RM_LOCK_ID 1
26 #define TWOPHASE_RM_PGSTAT_ID 2
27 #define TWOPHASE_RM_MULTIXACT_ID 3
28 #define TWOPHASE_RM_PREDICATELOCK_ID 4
29 #define TWOPHASE_RM_MAX_ID TWOPHASE_RM_PREDICATELOCK_ID
31 extern const TwoPhaseCallback twophase_recover_callbacks[];
32 extern const TwoPhaseCallback twophase_postcommit_callbacks[];
33 extern const TwoPhaseCallback twophase_postabort_callbacks[];
34 extern const TwoPhaseCallback twophase_standby_recover_callbacks[];
37 extern void RegisterTwoPhaseRecord(TwoPhaseRmgrId rmid, uint16 info,
38 const void *data, uint32 len);
40 #endif /* TWOPHASE_RMGR_H */