Header And Logo

PostgreSQL
| The world's most advanced open source database.

rmgr.h

Go to the documentation of this file.
00001 /*
00002  * rmgr.h
00003  *
00004  * Resource managers definition
00005  *
00006  * src/include/access/rmgr.h
00007  */
00008 #ifndef RMGR_H
00009 #define RMGR_H
00010 
00011 typedef uint8 RmgrId;
00012 
00013 /*
00014  * Built-in resource managers
00015  *
00016  * The actual numerical values for each rmgr ID are defined by the order
00017  * of entries in rmgrlist.h.
00018  *
00019  * Note: RM_MAX_ID must fit in RmgrId; widening that type will affect the XLOG
00020  * file format.
00021  */
00022 #define PG_RMGR(symname,name,redo,desc,startup,cleanup,restartpoint) \
00023     symname,
00024 
00025 typedef enum RmgrIds
00026 {
00027 #include "access/rmgrlist.h"
00028     RM_NEXT_ID
00029 } RmgrIds;
00030 
00031 #undef PG_RMGR
00032 
00033 #define RM_MAX_ID               (RM_NEXT_ID - 1)
00034 
00035 #endif   /* RMGR_H */