14 #ifndef VISIBILITYMAP_H 15 #define VISIBILITYMAP_H 23 #define BITS_PER_HEAPBLOCK 2 26 #define VISIBILITYMAP_ALL_VISIBLE 0x01 27 #define VISIBILITYMAP_ALL_FROZEN 0x02 28 #define VISIBILITYMAP_VALID_BITS 0x03 32 #define VM_ALL_VISIBLE(r, b, v) \ 33 ((visibilitymap_get_status((r), (b), (v)) & VISIBILITYMAP_ALL_VISIBLE) != 0) 34 #define VM_ALL_FROZEN(r, b, v) \ 35 ((visibilitymap_get_status((r), (b), (v)) & VISIBILITYMAP_ALL_FROZEN) != 0) bool visibilitymap_pin_ok(BlockNumber heapBlk, Buffer vmbuf)
bool visibilitymap_clear(Relation rel, BlockNumber heapBlk, Buffer vmbuf, uint8 flags)
void visibilitymap_set(Relation rel, BlockNumber heapBlk, Buffer heapBuf, XLogRecPtr recptr, Buffer vmBuf, TransactionId cutoff_xid, uint8 flags)
BlockNumber visibilitymap_prepare_truncate(Relation rel, BlockNumber nheapblocks)
void visibilitymap_pin(Relation rel, BlockNumber heapBlk, Buffer *vmbuf)
void visibilitymap_count(Relation rel, BlockNumber *all_visible, BlockNumber *all_frozen)
uint8 visibilitymap_get_status(Relation rel, BlockNumber heapBlk, Buffer *vmbuf)