PostgreSQL Source Code git master
Loading...
Searching...
No Matches
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-2026, 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
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:1328
uint8_t uint8
Definition c.h:544
uint16_t uint16
Definition c.h:545
uint32_t uint32
Definition c.h:546
const void size_t len
const void * data
static int fb(int x)
void(* TwoPhaseCallback)(FullTransactionId fxid, uint16 info, void *recdata, uint32 len)
void RegisterTwoPhaseRecord(TwoPhaseRmgrId rmid, uint16 info, const void *data, uint32 len)
Definition twophase.c:1271
uint8 TwoPhaseRmgrId
PGDLLIMPORT const TwoPhaseCallback twophase_postabort_callbacks[]
PGDLLIMPORT const TwoPhaseCallback twophase_standby_recover_callbacks[]
PGDLLIMPORT const TwoPhaseCallback twophase_postcommit_callbacks[]
PGDLLIMPORT const TwoPhaseCallback twophase_recover_callbacks[]