indexfsm.h 799 B

1234567891011121314151617181920212223242526
  1. /*-------------------------------------------------------------------------
  2. *
  3. * indexfsm.h
  4. * POSTGRES free space map for quickly finding an unused page in index
  5. *
  6. *
  7. * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
  8. * Portions Copyright (c) 1994, Regents of the University of California
  9. *
  10. * src/include/storage/indexfsm.h
  11. *
  12. *-------------------------------------------------------------------------
  13. */
  14. #ifndef INDEXFSM_H_
  15. #define INDEXFSM_H_
  16. #include "storage/block.h"
  17. #include "utils/relcache.h"
  18. extern BlockNumber GetFreeIndexPage(Relation rel);
  19. extern void RecordFreeIndexPage(Relation rel, BlockNumber page);
  20. extern void RecordUsedIndexPage(Relation rel, BlockNumber page);
  21. extern void IndexFreeSpaceMapVacuum(Relation rel);
  22. #endif /* INDEXFSM_H_ */