Thanks to visit codestin.com
Credit goes to doxygen.postgresql.org

PostgreSQL Source Code git master
twophase_rmgr.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * twophase_rmgr.h
4 * Two-phase-commit resource managers definition
5 *
6 *
7 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
9 *
10 * src/include/access/twophase_rmgr.h
11 *
12 *-------------------------------------------------------------------------
13 */
14#ifndef TWOPHASE_RMGR_H
15#define TWOPHASE_RMGR_H
16
17#include "access/transam.h"
18
19typedef void (*TwoPhaseCallback) (FullTransactionId fxid, uint16 info,
20 void *recdata, uint32 len);
22
23/*
24 * Built-in resource managers
25 */
26#define TWOPHASE_RM_END_ID 0
27#define TWOPHASE_RM_LOCK_ID 1
28#define TWOPHASE_RM_PGSTAT_ID 2
29#define TWOPHASE_RM_MULTIXACT_ID 3
30#define TWOPHASE_RM_PREDICATELOCK_ID 4
31#define TWOPHASE_RM_MAX_ID TWOPHASE_RM_PREDICATELOCK_ID
32
37
38
39extern void RegisterTwoPhaseRecord(TwoPhaseRmgrId rmid, uint16 info,
40 const void *data, uint32 len);
41
42#endif /* TWOPHASE_RMGR_H */
#define PGDLLIMPORT
Definition: c.h:1320
uint8_t uint8
Definition: c.h:537
uint16_t uint16
Definition: c.h:538
uint32_t uint32
Definition: c.h:539
const void size_t len
const void * data
void(* TwoPhaseCallback)(FullTransactionId fxid, uint16 info, void *recdata, uint32 len)
Definition: twophase_rmgr.h:19
void RegisterTwoPhaseRecord(TwoPhaseRmgrId rmid, uint16 info, const void *data, uint32 len)
Definition: twophase.c:1271
uint8 TwoPhaseRmgrId
Definition: twophase_rmgr.h:21
PGDLLIMPORT const TwoPhaseCallback twophase_postabort_callbacks[]
Definition: twophase_rmgr.c:42
PGDLLIMPORT const TwoPhaseCallback twophase_standby_recover_callbacks[]
Definition: twophase_rmgr.c:51
PGDLLIMPORT const TwoPhaseCallback twophase_postcommit_callbacks[]
Definition: twophase_rmgr.c:33
PGDLLIMPORT const TwoPhaseCallback twophase_recover_callbacks[]
Definition: twophase_rmgr.c:24