visibilitymapdefs.h 724 B

12345678910111213141516171819202122232425
  1. /*-------------------------------------------------------------------------
  2. *
  3. * visibilitymapdefs.h
  4. * macros for accessing contents of visibility map pages
  5. *
  6. *
  7. * Copyright (c) 2021-2022, PostgreSQL Global Development Group
  8. *
  9. * src/include/access/visibilitymapdefs.h
  10. *
  11. *-------------------------------------------------------------------------
  12. */
  13. #ifndef VISIBILITYMAPDEFS_H
  14. #define VISIBILITYMAPDEFS_H
  15. /* Number of bits for one heap page */
  16. #define BITS_PER_HEAPBLOCK 2
  17. /* Flags for bit map */
  18. #define VISIBILITYMAP_ALL_VISIBLE 0x01
  19. #define VISIBILITYMAP_ALL_FROZEN 0x02
  20. #define VISIBILITYMAP_VALID_BITS 0x03 /* OR of all valid visibilitymap
  21. * flags bits */
  22. #endif /* VISIBILITYMAPDEFS_H */