2008-09-30 12:52:14 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* indexfsm.h
|
|
|
|
* POSTGRES free space map for quickly finding an unused page in index
|
|
|
|
*
|
|
|
|
*
|
2022-01-08 01:04:57 +01:00
|
|
|
* Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
|
2008-09-30 12:52:14 +02:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
2010-09-20 22:08:53 +02:00
|
|
|
* src/include/storage/indexfsm.h
|
2008-09-30 12:52:14 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef INDEXFSM_H_
|
|
|
|
#define INDEXFSM_H_
|
|
|
|
|
2008-12-12 23:56:00 +01:00
|
|
|
#include "storage/block.h"
|
|
|
|
#include "utils/relcache.h"
|
2008-09-30 12:52:14 +02:00
|
|
|
|
|
|
|
extern BlockNumber GetFreeIndexPage(Relation rel);
|
2022-09-20 04:18:36 +02:00
|
|
|
extern void RecordFreeIndexPage(Relation rel, BlockNumber freeBlock);
|
|
|
|
extern void RecordUsedIndexPage(Relation rel, BlockNumber usedBlock);
|
2008-09-30 12:52:14 +02:00
|
|
|
|
2008-10-06 10:04:11 +02:00
|
|
|
extern void IndexFreeSpaceMapVacuum(Relation rel);
|
2008-09-30 12:52:14 +02:00
|
|
|
|
2008-12-12 23:56:00 +01:00
|
|
|
#endif /* INDEXFSM_H_ */
|