1 /*
2  * rmgr.h
3  *
4  * Resource managers definition
5  *
6  * src/include/access/rmgr.h
7  */
8 #ifndef RMGR_H
9 #define RMGR_H
10 
11 typedef uint8 RmgrId;
12 
13 /*
14  * Built-in resource managers
15  *
16  * The actual numerical values for each rmgr ID are defined by the order
17  * of entries in rmgrlist.h.
18  *
19  * Note: RM_MAX_ID must fit in RmgrId; widening that type will affect the XLOG
20  * file format.
21  */
22 #define PG_RMGR(symname,name,redo,desc,identify,startup,cleanup) \
23 	symname,
24 
25 typedef enum RmgrIds
26 {
27 #include "access/rmgrlist.h"
28 	RM_NEXT_ID
29 } RmgrIds;
30 
31 #undef PG_RMGR
32 
33 #define RM_MAX_ID				(RM_NEXT_ID - 1)
34 
35 #endif   /* RMGR_H */
36