Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "postgres.h"
00016
00017 #include "access/multixact.h"
00018 #include "access/twophase_rmgr.h"
00019 #include "pgstat.h"
00020 #include "storage/lock.h"
00021 #include "storage/predicate.h"
00022
00023
00024 const TwoPhaseCallback twophase_recover_callbacks[TWOPHASE_RM_MAX_ID + 1] =
00025 {
00026 NULL,
00027 lock_twophase_recover,
00028 NULL,
00029 multixact_twophase_recover,
00030 predicatelock_twophase_recover
00031 };
00032
00033 const TwoPhaseCallback twophase_postcommit_callbacks[TWOPHASE_RM_MAX_ID + 1] =
00034 {
00035 NULL,
00036 lock_twophase_postcommit,
00037 pgstat_twophase_postcommit,
00038 multixact_twophase_postcommit,
00039 NULL
00040 };
00041
00042 const TwoPhaseCallback twophase_postabort_callbacks[TWOPHASE_RM_MAX_ID + 1] =
00043 {
00044 NULL,
00045 lock_twophase_postabort,
00046 pgstat_twophase_postabort,
00047 multixact_twophase_postabort,
00048 NULL
00049 };
00050
00051 const TwoPhaseCallback twophase_standby_recover_callbacks[TWOPHASE_RM_MAX_ID + 1] =
00052 {
00053 NULL,
00054 lock_twophase_standby_recover,
00055 NULL,
00056 NULL,
00057 NULL
00058 };