Query in SQL function still not schema-safe; add a couple
[PostgreSQL.git] / src / backend / access / transam / twophase_rmgr.c
blob90f3c0e1dde298435205678642c264979b7b87d5
1 /*-------------------------------------------------------------------------
3 * twophase_rmgr.c
4 * Two-phase-commit resource managers tables
6 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
10 * IDENTIFICATION
11 * $PostgreSQL$
13 *-------------------------------------------------------------------------
15 #include "postgres.h"
17 #include "access/twophase_rmgr.h"
18 #include "commands/async.h"
19 #include "pgstat.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] =
27 NULL, /* END ID */
28 lock_twophase_recover, /* Lock */
29 NULL, /* Inval */
30 NULL, /* flat file update */
31 NULL, /* notify/listen */
32 NULL /* pgstat */
35 const TwoPhaseCallback twophase_postcommit_callbacks[TWOPHASE_RM_MAX_ID + 1] =
37 NULL, /* END ID */
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] =
47 NULL, /* END ID */
48 lock_twophase_postabort, /* Lock */
49 NULL, /* Inval */
50 NULL, /* flat file update */
51 NULL, /* notify/listen */
52 pgstat_twophase_postabort /* pgstat */