]> granicus.if.org Git - postgresql/blob - src/include/access/visibilitymap.h
Update copyright for 2014
[postgresql] / src / include / access / visibilitymap.h
1 /*-------------------------------------------------------------------------
2  *
3  * visibilitymap.h
4  *              visibility map interface
5  *
6  *
7  * Portions Copyright (c) 2007-2014, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/access/visibilitymap.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef VISIBILITYMAP_H
15 #define VISIBILITYMAP_H
16
17 #include "access/xlogdefs.h"
18 #include "storage/block.h"
19 #include "storage/buf.h"
20 #include "utils/relcache.h"
21
22 extern void visibilitymap_clear(Relation rel, BlockNumber heapBlk,
23                                         Buffer vmbuf);
24 extern void visibilitymap_pin(Relation rel, BlockNumber heapBlk,
25                                   Buffer *vmbuf);
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);
32
33 #endif   /* VISIBILITYMAP_H */