PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
rmgr.h
Go to the documentation of this file.
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,mask) \
23  symname,
24 
25 typedef enum RmgrIds
26 {
27 #include "access/rmgrlist.h"
29 } RmgrIds;
30 
31 #undef PG_RMGR
32 
33 #define RM_MAX_ID (RM_NEXT_ID - 1)
34 
35 #endif /* RMGR_H */
unsigned char uint8
Definition: c.h:266
uint8 RmgrId
Definition: rmgr.h:11
RmgrIds
Definition: rmgr.h:25