PostgreSQL Source Code git master
Loading...
Searching...
No Matches
twophase_rmgr.c File Reference
#include "postgres.h"
#include "access/multixact.h"
#include "access/twophase_rmgr.h"
#include "pgstat.h"
#include "storage/lock.h"
#include "storage/predicate.h"
Include dependency graph for twophase_rmgr.c:

Go to the source code of this file.

Variables

const TwoPhaseCallback twophase_recover_callbacks [TWOPHASE_RM_MAX_ID+1]
 
const TwoPhaseCallback twophase_postcommit_callbacks [TWOPHASE_RM_MAX_ID+1]
 
const TwoPhaseCallback twophase_postabort_callbacks [TWOPHASE_RM_MAX_ID+1]
 
const TwoPhaseCallback twophase_standby_recover_callbacks [TWOPHASE_RM_MAX_ID+1]
 

Variable Documentation

◆ twophase_postabort_callbacks

const TwoPhaseCallback twophase_postabort_callbacks[TWOPHASE_RM_MAX_ID+1]
Initial value:
=
{
NULL,
}
void lock_twophase_postabort(FullTransactionId fxid, uint16 info, void *recdata, uint32 len)
Definition lock.c:4596
void multixact_twophase_postabort(FullTransactionId fxid, uint16 info, void *recdata, uint32 len)
Definition multixact.c:1695
void pgstat_twophase_postabort(FullTransactionId fxid, uint16 info, void *recdata, uint32 len)
static int fb(int x)

Definition at line 42 of file twophase_rmgr.c.

43{
44 NULL, /* END ID */
45 lock_twophase_postabort, /* Lock */
46 pgstat_twophase_postabort, /* pgstat */
47 multixact_twophase_postabort, /* MultiXact */
48 NULL /* PredicateLock */
49};

Referenced by FinishPreparedTransaction().

◆ twophase_postcommit_callbacks

const TwoPhaseCallback twophase_postcommit_callbacks[TWOPHASE_RM_MAX_ID+1]
Initial value:
=
{
NULL,
}
void lock_twophase_postcommit(FullTransactionId fxid, uint16 info, void *recdata, uint32 len)
Definition lock.c:4570
void multixact_twophase_postcommit(FullTransactionId fxid, uint16 info, void *recdata, uint32 len)
Definition multixact.c:1680
void pgstat_twophase_postcommit(FullTransactionId fxid, uint16 info, void *recdata, uint32 len)

Definition at line 33 of file twophase_rmgr.c.

34{
35 NULL, /* END ID */
36 lock_twophase_postcommit, /* Lock */
37 pgstat_twophase_postcommit, /* pgstat */
38 multixact_twophase_postcommit, /* MultiXact */
39 NULL /* PredicateLock */
40};

Referenced by FinishPreparedTransaction().

◆ twophase_recover_callbacks

const TwoPhaseCallback twophase_recover_callbacks[TWOPHASE_RM_MAX_ID+1]
Initial value:
=
{
NULL,
NULL,
}
void lock_twophase_recover(FullTransactionId fxid, uint16 info, void *recdata, uint32 len)
Definition lock.c:4357
void multixact_twophase_recover(FullTransactionId fxid, uint16 info, void *recdata, uint32 len)
Definition multixact.c:1659
void predicatelock_twophase_recover(FullTransactionId fxid, uint16 info, void *recdata, uint32 len)
Definition predicate.c:4907

Definition at line 24 of file twophase_rmgr.c.

25{
26 NULL, /* END ID */
27 lock_twophase_recover, /* Lock */
28 NULL, /* pgstat */
29 multixact_twophase_recover, /* MultiXact */
30 predicatelock_twophase_recover /* PredicateLock */
31};

Referenced by RecoverPreparedTransactions().

◆ twophase_standby_recover_callbacks

const TwoPhaseCallback twophase_standby_recover_callbacks[TWOPHASE_RM_MAX_ID+1]
Initial value:
=
{
NULL,
NULL,
NULL,
}
void lock_twophase_standby_recover(FullTransactionId fxid, uint16 info, void *recdata, uint32 len)
Definition lock.c:4538

Definition at line 51 of file twophase_rmgr.c.

52{
53 NULL, /* END ID */
55 NULL, /* pgstat */
56 NULL, /* MultiXact */
57 NULL /* PredicateLock */
58};