2008-12-03 08:05:22 -05:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
*
|
|
|
|
|
* visibilitymap.h
|
2009-06-11 10:49:15 -04:00
|
|
|
* visibility map interface
|
2008-12-03 08:05:22 -05:00
|
|
|
*
|
|
|
|
|
*
|
2011-01-01 13:18:15 -05:00
|
|
|
* Portions Copyright (c) 2007-2011, PostgreSQL Global Development Group
|
2008-12-03 08:05:22 -05:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
|
|
|
*
|
2010-09-20 16:08:53 -04:00
|
|
|
* src/include/access/visibilitymap.h
|
2008-12-03 08:05:22 -05:00
|
|
|
*
|
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
#ifndef VISIBILITYMAP_H
|
|
|
|
|
#define VISIBILITYMAP_H
|
|
|
|
|
|
|
|
|
|
#include "access/xlogdefs.h"
|
2009-08-23 22:18:32 -04:00
|
|
|
#include "storage/block.h"
|
|
|
|
|
#include "storage/buf.h"
|
|
|
|
|
#include "utils/relcache.h"
|
2008-12-03 08:05:22 -05:00
|
|
|
|
|
|
|
|
extern void visibilitymap_clear(Relation rel, BlockNumber heapBlk);
|
|
|
|
|
extern void visibilitymap_pin(Relation rel, BlockNumber heapBlk,
|
2009-06-11 10:49:15 -04:00
|
|
|
Buffer *vmbuf);
|
2008-12-03 08:05:22 -05:00
|
|
|
extern void visibilitymap_set(Relation rel, BlockNumber heapBlk,
|
2009-06-11 10:49:15 -04:00
|
|
|
XLogRecPtr recptr, Buffer *vmbuf);
|
2008-12-03 08:05:22 -05:00
|
|
|
extern bool visibilitymap_test(Relation rel, BlockNumber heapBlk, Buffer *vmbuf);
|
|
|
|
|
extern void visibilitymap_truncate(Relation rel, BlockNumber heapblk);
|
|
|
|
|
|
|
|
|
|
#endif /* VISIBILITYMAP_H */
|