rmgr.h 609 B

1234567891011121314151617181920212223242526272829303132333435
  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. typedef uint8 RmgrId;
  11. /*
  12. * Built-in resource managers
  13. *
  14. * The actual numerical values for each rmgr ID are defined by the order
  15. * of entries in rmgrlist.h.
  16. *
  17. * Note: RM_MAX_ID must fit in RmgrId; widening that type will affect the XLOG
  18. * file format.
  19. */
  20. #define PG_RMGR(symname,name,redo,desc,identify,startup,cleanup) \
  21. symname,
  22. typedef enum RmgrIds
  23. {
  24. #include "access/rmgrlist.h"
  25. RM_NEXT_ID
  26. } RmgrIds;
  27. #undef PG_RMGR
  28. #define RM_MAX_ID (RM_NEXT_ID - 1)
  29. #endif /* RMGR_H */