1 /*-------------------------------------------------------------------------
4 * visibility map interface
7 * Portions Copyright (c) 2007-2014, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/access/visibilitymap.h
12 *-------------------------------------------------------------------------
14 #ifndef VISIBILITYMAP_H
15 #define VISIBILITYMAP_H
17 #include "access/xlogdefs.h"
18 #include "storage/block.h"
19 #include "storage/buf.h"
20 #include "utils/relcache.h"
22 extern void visibilitymap_clear(Relation rel, BlockNumber heapBlk,
24 extern void visibilitymap_pin(Relation rel, BlockNumber heapBlk,
26 extern bool visibilitymap_pin_ok(BlockNumber heapBlk, Buffer vmbuf);
27 extern void visibilitymap_set(Relation rel, BlockNumber heapBlk, Buffer heapBuf,
28 XLogRecPtr recptr, Buffer vmBuf, TransactionId cutoff_xid);
29 extern bool visibilitymap_test(Relation rel, BlockNumber heapBlk, Buffer *vmbuf);
30 extern BlockNumber visibilitymap_count(Relation rel);
31 extern void visibilitymap_truncate(Relation rel, BlockNumber nheapblocks);
33 #endif /* VISIBILITYMAP_H */