PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
indexfsm.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * indexfsm.h
4  * POSTGRES free space map for quickly finding an unused page in index
5  *
6  *
7  * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/storage/indexfsm.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef INDEXFSM_H_
15 #define INDEXFSM_H_
16 
17 #include "storage/block.h"
18 #include "utils/relcache.h"
19 
21 extern void RecordFreeIndexPage(Relation rel, BlockNumber page);
22 extern void RecordUsedIndexPage(Relation rel, BlockNumber page);
23 
24 extern void IndexFreeSpaceMapVacuum(Relation rel);
25 
26 #endif /* INDEXFSM_H_ */
uint32 BlockNumber
Definition: block.h:31
BlockNumber GetFreeIndexPage(Relation rel)
Definition: indexfsm.c:38
void RecordFreeIndexPage(Relation rel, BlockNumber page)
Definition: indexfsm.c:52
void IndexFreeSpaceMapVacuum(Relation rel)
Definition: indexfsm.c:71
void RecordUsedIndexPage(Relation rel, BlockNumber page)
Definition: indexfsm.c:62