1 /*-------------------------------------------------------------------------
4 * Two-phase-commit resource managers tables
6 * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
11 * $PostgreSQL: pgsql/src/backend/access/transam/twophase_rmgr.c,v 1.5 2007/05/27 03:50:39 tgl Exp $
13 *-------------------------------------------------------------------------
17 #include "access/twophase_rmgr.h"
18 #include "commands/async.h"
20 #include "storage/lock.h"
21 #include "utils/flatfiles.h"
22 #include "utils/inval.h"
25 const TwoPhaseCallback twophase_recover_callbacks[TWOPHASE_RM_MAX_ID + 1] =
28 lock_twophase_recover, /* Lock */
30 NULL, /* flat file update */
31 NULL, /* notify/listen */
35 const TwoPhaseCallback twophase_postcommit_callbacks[TWOPHASE_RM_MAX_ID + 1] =
38 lock_twophase_postcommit, /* Lock */
39 inval_twophase_postcommit, /* Inval */
40 flatfile_twophase_postcommit, /* flat file update */
41 notify_twophase_postcommit, /* notify/listen */
42 pgstat_twophase_postcommit /* pgstat */
45 const TwoPhaseCallback twophase_postabort_callbacks[TWOPHASE_RM_MAX_ID + 1] =
48 lock_twophase_postabort, /* Lock */
50 NULL, /* flat file update */
51 NULL, /* notify/listen */
52 pgstat_twophase_postabort /* pgstat */