| /* | |
| * rmgr.h | |
| * | |
| * Resource managers definition | |
| * | |
| * src/include/access/rmgr.h | |
| */ | |
| typedef uint8 RmgrId; | |
| /* | |
| * Built-in resource managers | |
| * | |
| * The actual numerical values for each rmgr ID are defined by the order | |
| * of entries in rmgrlist.h. | |
| * | |
| * Note: RM_MAX_ID must fit in RmgrId; widening that type will affect the XLOG | |
| * file format. | |
| */ | |
| typedef enum RmgrIds | |
| { | |
| RM_NEXT_ID | |
| } RmgrIds; | |
| static inline bool | |
| RmgrIdIsBuiltin(int rmid) | |
| { | |
| return rmid <= RM_MAX_BUILTIN_ID; | |
| } | |
| static inline bool | |
| RmgrIdIsCustom(int rmid) | |
| { | |
| return rmid >= RM_MIN_CUSTOM_ID && rmid <= RM_MAX_CUSTOM_ID; | |
| } | |
| /* | |
| * RmgrId to use for extensions that require an RmgrId, but are still in | |
| * development and have not reserved their own unique RmgrId yet. See: | |
| * https://wiki.postgresql.org/wiki/CustomWALResourceManagers | |
| */ | |