1
1
/*-------------------------------------------------------------------------
4
* visibility map interface
4
* visibility map interface
7
7
* Portions Copyright (c) 2007-2009, PostgreSQL Global Development Group
8
8
* Portions Copyright (c) 1994, Regents of the University of California
10
* $PostgreSQL: pgsql/src/include/access/visibilitymap.h,v 1.3 2009/01/01 17:23:56 momjian Exp $
10
* $PostgreSQL: pgsql/src/include/access/visibilitymap.h,v 1.4.2.1 2009/08/24 02:18:40 tgl Exp $
12
12
*-------------------------------------------------------------------------
14
14
#ifndef VISIBILITYMAP_H
15
15
#define VISIBILITYMAP_H
17
#include "access/xlogdefs.h"
18
#include "storage/block.h"
19
#include "storage/buf.h"
17
20
#include "utils/relcache.h"
18
#include "storage/buf.h"
19
#include "storage/itemptr.h"
20
#include "access/xlogdefs.h"
22
22
extern void visibilitymap_clear(Relation rel, BlockNumber heapBlk);
23
23
extern void visibilitymap_pin(Relation rel, BlockNumber heapBlk,
25
25
extern void visibilitymap_set(Relation rel, BlockNumber heapBlk,
26
XLogRecPtr recptr, Buffer *vmbuf);
26
XLogRecPtr recptr, Buffer *vmbuf);
27
27
extern bool visibilitymap_test(Relation rel, BlockNumber heapBlk, Buffer *vmbuf);
28
28
extern void visibilitymap_truncate(Relation rel, BlockNumber heapblk);